Name
ComRegisterFunctionAttribute
Synopsis
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 method ComRegisterFunctionAttribute(); }
Hierarchy
System.Object→System.Attribute→ComRegisterFunctionAttribute
Valid On
Method
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access