Provides a set of services for registering and unregistering managed assemblies for use from COM.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetManagedCategoryGuid||Returns the GUID of the COM category that contains the managed classes.|
|GetProgIdForType||Retrieves the COM ProgID for the specified type.|
|GetRegistrableTypesInAssembly||Retrieves a list of classes in an assembly that would be registered by a call to RegisterAssembly.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|RegisterAssembly||Registers the classes in a managed assembly to enable creation from COM.|
|RegisterTypeForComClients(Type, Guid)||Registers the specified type with COM using the specified GUID.|
|RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)||Registers the specified type with COM using the specified execution context and connection type.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|TypeRepresentsComType||Indicates whether a type is marked with the ComImportAttribute, or derives from a type marked with the ComImportAttribute and shares the same GUID as the parent.|
|TypeRequiresRegistration||Determines whether the specified type requires registration.|
|UnregisterAssembly||Unregisters the classes in a managed assembly.|
|UnregisterTypeForComClients||Removes references to a type registered with the RegisterTypeForComClients method.|
Registration is needed when the objects within an assembly are being used by COM clients. The Regasm.exe (Assembly Registration Tool) and Microsoft Visual Studio 2005 use methods exposed by the class to add or remove COM-enabling registry entries for managed assemblies.
You can use the following methods to assist you in preparing a registration file:
Although these methods help in gathering information to be used in a registration file, they do not actually produce a registration file. Instead, you can use the Regasm.exe (Assembly Registration Tool) tool with the /regfile option to perform this task. methods cannot export and register a type library. To export and register a type library, you can use the Regasm.exe (Assembly Registration Tool) tool and the Tlbexp.exe (Type Library Exporter) tool.