语言

IRegistrationServices 接口

定义

提供一组用于注册和注销托管程序集的服务,供 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 客户端使用程序集中的对象时,需要注册。

方法

名称 说明
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)

取消注册托管程序集中的类。

适用于