IRegistrationServices IRegistrationServices IRegistrationServices IRegistrationServices Interface

定义

提供一组用于注册和注销托管程序集以供从 COM 使用的服务。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() GetManagedCategoryGuid() GetManagedCategoryGuid() GetManagedCategoryGuid()

返回包含托管类的 COM 类别的 GUID。Returns the GUID of the COM category that contains the managed classes.

GetProgIdForType(Type) GetProgIdForType(Type) GetProgIdForType(Type) GetProgIdForType(Type)

检索指定类型的 COM ProgID。Retrieves the COM ProgID for a specified type.

GetRegistrableTypesInAssembly(Assembly) GetRegistrableTypesInAssembly(Assembly) GetRegistrableTypesInAssembly(Assembly) 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) RegisterAssembly(Assembly, AssemblyRegistrationFlags) RegisterAssembly(Assembly, AssemblyRegistrationFlags) RegisterAssembly(Assembly, AssemblyRegistrationFlags)

注册托管程序集中的类以便能从 COM 创建。Registers the classes in a managed assembly to enable creation from COM.

RegisterTypeForComClients(Type, Guid) RegisterTypeForComClients(Type, Guid) RegisterTypeForComClients(Type, Guid) RegisterTypeForComClients(Type, Guid)

使用指定的 GUID 向 COM 注册指定的类型。Registers the specified type with COM using the specified GUID.

TypeRepresentsComType(Type) TypeRepresentsComType(Type) TypeRepresentsComType(Type) TypeRepresentsComType(Type)

确定指定的类型是否为 COM 类型。Determines whether the specified type is a COM type.

TypeRequiresRegistration(Type) TypeRequiresRegistration(Type) TypeRequiresRegistration(Type) TypeRequiresRegistration(Type)

确定指定的类型是否需要注册。Determines whether the specified type requires registration.

UnregisterAssembly(Assembly) UnregisterAssembly(Assembly) UnregisterAssembly(Assembly) UnregisterAssembly(Assembly)

注销托管程序集中的类。Unregisters the classes in a managed assembly.

适用于