語言

IRegistrationServices 介面

定義

提供一組服務,用於註冊和取消註冊 Managed 元件以供 COM 使用。

public interface class IRegistrationServices
[System.Runtime.InteropServices.Guid("CCBD682C-73A5-4568-B8B0-C7007E11ABA2")]
public interface IRegistrationServices
[System.Runtime.InteropServices.Guid("CCBD682C-73A5-4568-B8B0-C7007E11ABA2")]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IRegistrationServices
[<System.Runtime.InteropServices.Guid("CCBD682C-73A5-4568-B8B0-C7007E11ABA2")>]
type IRegistrationServices = interface
[<System.Runtime.InteropServices.Guid("CCBD682C-73A5-4568-B8B0-C7007E11ABA2")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IRegistrationServices = interface
Public Interface IRegistrationServices
衍生
屬性

備註

當組件內的物件被 COM 用戶端使用時,則需要註冊。

方法

名稱 Description
GetManagedCategoryGuid()

回傳包含受管理類別的 COM 類別的 GUID。

GetProgIdForType(Type)

取得指定型別的 COM ProgID。

GetRegistrableTypesInAssembly(Assembly)

取得一個集合中會被呼叫 RegisterAssembly(Assembly, AssemblyRegistrationFlags)註冊的類別清單。

RegisterAssembly(Assembly, AssemblyRegistrationFlags)

將類別登錄在受管理的組合語言中,以便從 COM 建立。

RegisterTypeForComClients(Type, Guid)

使用指定的 GUID 向 COM 註冊指定型別。

TypeRepresentsComType(Type)

判斷指定的類型是否為 COM 類型。

TypeRequiresRegistration(Type)

判斷指定類型是否需要註冊。

UnregisterAssembly(Assembly)

取消註冊管理組件中的類別。

適用於