RegistrationServices Clase

Definición

Proporciona un conjunto de servicios para registrar y anular el registro de ensamblados administrados para utilizarlos 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.ComVisible(true)]
[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")>]
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
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("475e398f-8afa-43a7-a3be-f4ef8d6787c9")>]
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 dentro de un ensamblado. LasRegasm.exe (Herramienta de registro de ensamblados) y Microsoft Visual Studio 2005 usan métodos expuestos por la clase para agregar o quitar entradas del Registro que habilitan COM para ensamblados RegistrationServices 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 herramientaRegasm.exe (Herramienta de registro de ensamblados) con /regfile la 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 herramientaRegasm.exe (Herramienta de registro de ensamblados) y la herramientaTlbexp.exe (Exportador de la biblioteca de tipos).

Constructores

RegistrationServices()

Inicializa una nueva instancia de la clase RegistrationServices.

Métodos

Equals(Object)

Determina si el objeto especificado es igual que el objeto actual.

(Heredado de Object)
GetHashCode()

Sirve 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)

Obtiene el identificador de programa COM del tipo especificado.

GetRegistrableTypesInAssembly(Assembly)

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

GetType()

Obtiene el Type de la instancia actual.

(Heredado de Object)
MemberwiseClone()

Crea una copia superficial del Object actual.

(Heredado de Object)
RegisterAssembly(Assembly, AssemblyRegistrationFlags)

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

RegisterTypeForComClients(Type, Guid)

Registra el tipo especificado con COM utilizando el identificador GUID especificado.

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

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

ToString()

Devuelve una cadena que representa el objeto actual.

(Heredado de Object)
TypeRepresentsComType(Type)

Indica si un tipo se ha marcado con ComImportAttribute o deriva de un tipo marcado con ComImportAttribute y comparte el mismo GUID que el elemento primario.

TypeRequiresRegistration(Type)

Determina si el tipo especificado requiere que se realice un registro.

UnregisterAssembly(Assembly)

Anula el registro de las clases en un ensamblado administrado.

UnregisterTypeForComClients(Int32)

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

Se aplica a

Consulte también