IRegistrationServices 接口
定义
提供一组用于注册和注销托管程序集以供从 COM 使用的服务。Provides a set of services for registering and unregistering managed assemblies for use from 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 客户端使用程序集中的对象时,需要注册。Registration is needed when the objects within an assembly are being used by COM clients.
方法
| GetManagedCategoryGuid() |
返回包含托管类的 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) |
注册托管程序集中的类以便能从 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) |
注销托管程序集中的类。Unregisters the classes in a managed assembly. |