語言

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 。

適用於