IRegistrationServices.RegisterTypeForComClients(Type, Guid) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的 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 。