ComRegisterFunctionAttribute

ComRegisterFunctionAttribute

System.Runtime.InteropServices (mscorlib.dll) sealed class

This attribute is attached to a static method to indicate that it should be invoked when the enclosing assembly is registered with COM. The method should take two string arguments. The first is the name of the registry key being updated, and the second is the namespace-qualified name of the type being registered (such as System.String ). There can only be one registration function in each assembly.

Microsoft suggests that you do not use this feature and includes it only for backward compatibility. If you use this feature to specify a registration method, you must also specify an unregistration method (see ComUnregisterFunctionAttribute ) that reverses all changes you made in the registration function.

 public sealed class  ComRegisterFunctionAttribute  : Attribute {  // Public Constructors  public  ComRegisterFunctionAttribute  ( ); } 

Hierarchy

System.Object System.Attribute ComRegisterFunctionAttribute

Valid On

Method



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net