Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

RegistrationServices Class

Provides a set of services for registering and unregistering managed assemblies for use from COM.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

[GuidAttribute("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[ComVisibleAttribute(true)] 
public class RegistrationServices : IRegistrationServices
/** @attribute GuidAttribute("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9") */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class RegistrationServices implements IRegistrationServices
GuidAttribute("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9") 
ClassInterfaceAttribute(ClassInterfaceType.None) 
ComVisibleAttribute(true) 
public class RegistrationServices implements IRegistrationServices

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 2005 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 the Assembly Registration Tool (Regasm.exe) tool with the /regfile option to perform this task. RegistrationServices methods cannot export and register a type library. To export and register a type library, you can use the Assembly Registration Tool (Regasm.exe) tool and the Type Library Exporter (Tlbexp.exe) tool.

System.Object
  System.Runtime.InteropServices.RegistrationServices
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.