IRegistrationServices 介面

定義

提供一組服務用來從 COM 註冊和取消註冊 Managed 組件。Provides a set of services for registering and unregistering managed assemblies for use from COM.

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

備註

當 COM 用戶端正在使用元件中的物件時,需要註冊。Registration is needed when the objects within an assembly are being used by COM clients.

方法

GetManagedCategoryGuid()

傳回包含 Managed 類別之 COM 分類的 GUID。Returns the GUID of the COM category that contains the managed classes.

GetProgIdForType(Type)

擷取指定型別的 COM ProgID。Retrieves the COM ProgID for a specified type.

GetRegistrableTypesInAssembly(Assembly)

擷取組件中的類別清單,此組件是藉由呼叫 RegisterAssembly(Assembly, AssemblyRegistrationFlags) 而註冊。Retrieves a list of classes in an assembly that would be registered by a call to RegisterAssembly(Assembly, AssemblyRegistrationFlags).

RegisterAssembly(Assembly, AssemblyRegistrationFlags)

註冊 Managed 組件中的類別,以啟用從 COM 的建立。Registers the classes in a managed assembly to enable creation from COM.

RegisterTypeForComClients(Type, Guid)

使用指定的 GUID 來註冊 COM 的特定型別。Registers the specified type with COM using the specified GUID.

TypeRepresentsComType(Type)

判斷指定的型別是否為 COM 型別。Determines whether the specified type is a COM type.

TypeRequiresRegistration(Type)

判斷指定的型別是否需要登錄。Determines whether the specified type requires registration.

UnregisterAssembly(Assembly)

取消註冊 Managed 組件中的類別。Unregisters the classes in a managed assembly.

適用於