共用方式為


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

適用於