IRegistrationServices 介面

定義

提供一組服務用來從 COM 註冊和取消註冊 Managed 組件。

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 用戶端正在使用元件中的物件時,就需要註冊。

方法

GetManagedCategoryGuid()

傳回包含 Managed 類別之 COM 分類的 GUID。

GetProgIdForType(Type)

擷取指定型別的 COM ProgID。

GetRegistrableTypesInAssembly(Assembly)

擷取組件中的類別清單,此組件是藉由呼叫 RegisterAssembly(Assembly, AssemblyRegistrationFlags) 而註冊。

RegisterAssembly(Assembly, AssemblyRegistrationFlags)

註冊 Managed 組件中的類別,以啟用從 COM 的建立。

RegisterTypeForComClients(Type, Guid)

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

TypeRepresentsComType(Type)

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

TypeRequiresRegistration(Type)

判斷指定的型別是否需要登錄。

UnregisterAssembly(Assembly)

取消註冊 Managed 組件中的類別。

適用於