RegistrationServices Clase

Definición

Proporciona un conjunto de servicios para registrar y anular el registro de ensamblados administrados para su uso desde COM.

public ref class RegistrationServices : System::Runtime::InteropServices::IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")]
[System.Runtime.InteropServices.ComVisible(true)]
public class RegistrationServices : System.Runtime.InteropServices.IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
type RegistrationServices = class
    interface IRegistrationServices
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("475E398F-8AFA-43a7-A3BE-F4EF8D6787C9")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type RegistrationServices = class
    interface IRegistrationServices
Public Class RegistrationServices
Implements IRegistrationServices
Herencia
RegistrationServices
Atributos
Implementaciones

Comentarios

El registro es necesario cuando los clientes COM usan los objetos de un ensamblado. El Regasm.exe (Herramienta de registro de ensamblados) y Microsoft Visual Studio 2005 usan métodos expuestos por la clase RegistrationServices para agregar o quitar entradas del Registro de habilitación COM para ensamblados administrados.

Puede usar los métodos siguientes para ayudarle a preparar un archivo de registro:

Aunque estos métodos ayudan a recopilar información que se va a usar en un archivo de registro, no generan realmente un archivo de registro. En su lugar, puede usar la herramienta Regasm.exe (Herramienta de registro de ensamblados) con la /regfile opción de realizar esta tarea. RegistrationServices los métodos no pueden exportar ni registrar una biblioteca de tipos. Para exportar y registrar una biblioteca de tipos, puede usar la herramienta Regasm.exe (Herramienta de registro de ensamblados) y la herramienta Tlbexp.exe (exportador de biblioteca de tipos).

Constructores

Nombre Description
RegistrationServices()

Inicializa una nueva instancia de la clase RegistrationServices.

Métodos

Nombre Description
Equals(Object)

Determina si el objeto especificado es igual al objeto actual.

(Heredado de Object)
GetHashCode()

Actúa como la función hash predeterminada.

(Heredado de Object)
GetManagedCategoryGuid()

Devuelve el GUID de la categoría COM que contiene las clases administradas.

GetProgIdForType(Type)

Recupera el ProgID COM para el tipo especificado.

GetRegistrableTypesInAssembly(Assembly)

Recupera una lista de clases de un ensamblado que se registraría mediante una llamada a RegisterAssembly(Assembly, AssemblyRegistrationFlags).

GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Objectactual.

(Heredado de Object)
RegisterAssembly(Assembly, AssemblyRegistrationFlags)

Registra las clases en un ensamblado administrado para habilitar la creación desde COM.

RegisterTypeForComClients(Type, Guid)

Registra el tipo especificado con COM mediante el GUID especificado.

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

Registra el tipo especificado con COM mediante el contexto de ejecución y el tipo de conexión especificados.

ToString()

Devuelve una cadena que representa el objeto actual.

(Heredado de Object)
TypeRepresentsComType(Type)

Indica si un tipo está marcado con ComImportAttributeo se deriva de un tipo marcado con y ComImportAttribute comparte el mismo GUID que el elemento primario.

TypeRequiresRegistration(Type)

Determina si el tipo especificado requiere el registro.

UnregisterAssembly(Assembly)

Anula el registro de las clases en un ensamblado administrado.

UnregisterTypeForComClients(Int32)

Quita las referencias a un tipo registrado con el RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) método .

Se aplica a

Consulte también