This topic has not yet been rated - Rate this topic

RegistrationServices.RegisterTypeForComClients Method

Registers the specified type with COM using the specified GUID. This method is not intended to be used directly from your code.

[Visual Basic]
Public Overridable Sub RegisterTypeForComClients( _
   ByVal type As Type, _
   ByRef g As Guid _
) Implements IRegistrationServices.RegisterTypeForComClients
[C#]
public virtual void RegisterTypeForComClients(
 Type type,
   ref Guid g
);
[C++]
public: virtual void RegisterTypeForComClients(
 Type* type,
 Guid* g
);
[JScript]
public function RegisterTypeForComClients(
   type : Type,
 g : Guid
);

Parameters

type
The Type to be registered for use from COM.
g
The Guid used to register the specified type.

Implements

IRegistrationServices.RegisterTypeForComClients

Remarks

This method, which is equivalent to calling CoRegisterClassObject in COM, is not intended to be used directly from your code. It registers a type but there is no equivalent unregistration method in the RegistrationServices class. Using the RegisterTypeForComClients method can cause unpredictable results, particularly if the application is multithreaded. Instead, to register the assembly containing the type, use the RegistrationServices.RegisterAssembly method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

RegistrationServices Class | RegistrationServices Members | System.Runtime.InteropServices Namespace | RegisterAssembly

Did you find this helpful?
(1500 characters remaining)