This documentation is archived and is not being maintained.

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.


[Visual Basic]
Public Class RegistrationServices
   Implements IRegistrationServices
public class RegistrationServices : IRegistrationServices
public __gc class RegistrationServices : public
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.


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.


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)