IRegistrationServices.RegisterTypeForComClients(Type, Guid) 方法

定义

使用指定的 GUID 向 COM 注册指定的类型。

public:
 void RegisterTypeForComClients(Type ^ type, Guid % g);
public void RegisterTypeForComClients (Type type, ref Guid g);
[System.Security.SecurityCritical]
public void RegisterTypeForComClients (Type type, ref Guid g);
abstract member RegisterTypeForComClients : Type * Guid -> unit
[<System.Security.SecurityCritical>]
abstract member RegisterTypeForComClients : Type * Guid -> unit
Public Sub RegisterTypeForComClients (type As Type, ByRef g As Guid)

参数

type
Type

要注册以供从 COM 使用的类型。

g
Guid

用于注册指定类型的 GUID。

属性

注解

此方法等效于在 COM 中调用 CoRegisterClassObject

适用于