RegistrationServices Class
Provides a set of services for registering and unregistering managed assemblies for use from COM.
For a list of all members of this type, see RegistrationServices Members.
System.Object
System.Runtime.InteropServices.RegistrationServices
[Visual Basic] <ClassInterface(ClassInterfaceType.None)> <Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")> Public Class RegistrationServices Implements IRegistrationServices [C#] [ClassInterface(ClassInterfaceType.None)] [Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")] public class RegistrationServices : IRegistrationServices [C++] [ClassInterface(ClassInterfaceType::None)] [Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")] public __gc class RegistrationServices : public IRegistrationServices [JScript] public ClassInterface(ClassInterfaceType.None) Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9") class RegistrationServices implements IRegistrationServices
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Registration is needed when the objects within an assembly are being used by COM clients. The Assembly Registration Tool (Regasm.exe) and Microsoft Visual Studio .NET use methods exposed by the RegistrationServices 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 Regasm.exe with the /regfile option for perform this task. RegistrationServices methods also cannot export and register a type library. You can use Regasm.exe /tlb for this.
Requirements
Namespace: System.Runtime.InteropServices
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)
See Also
RegistrationServices Members | System.Runtime.InteropServices Namespace | Assembly Registration Tool (Regasm.exe)