RegistrationServices Classe

Definição

Fornece um conjunto de serviços para registrar e cancelar o registro de assemblies gerenciados para uso do 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
Herança
RegistrationServices
Atributos
Implementações

Comentários

O registro é necessário quando os objetos dentro de um assembly estão sendo usados por clientes COM. o Regasm.exe (ferramenta de registro de Assembly) e Microsoft Visual Studio 2005 usam métodos expostos pela RegistrationServices classe para adicionar ou remover entradas de registro de habilitação COM para assemblies gerenciados.

Você pode usar os seguintes métodos para ajudá-lo a preparar um arquivo de registro:

Embora esses métodos ajudem a coletar informações a serem usadas em um arquivo de registro, na verdade eles não produzem um arquivo de registro. Em vez disso, você pode usar a ferramenta Regasm.exe (ferramenta de registro de assembly) com a /regfile opção de executar essa tarefa. RegistrationServices os métodos não podem exportar e registrar uma biblioteca de tipos. Para exportar e registrar uma biblioteca de tipos, você pode usar a ferramenta Regasm.exe (ferramenta de registro de assembly) e a Tlbexp.exe (ferramenta de exportador de biblioteca de tipos) .

Construtores

RegistrationServices()

Inicializa uma nova instância da classe RegistrationServices.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.

(Herdado de Object)
GetManagedCategoryGuid()

Retorna o GUID da categoria COM que contém as classes gerenciadas.

GetProgIdForType(Type)

Recupera o ProgID COM para o tipo especificado.

GetRegistrableTypesInAssembly(Assembly)

Recupera uma lista de classes em um assembly que seria registrado por uma chamada para RegisterAssembly(Assembly, AssemblyRegistrationFlags).

GetType()

Obtém o Type da instância atual.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.

(Herdado de Object)
RegisterAssembly(Assembly, AssemblyRegistrationFlags)

Registra as classes em um assembly gerenciado para habilitar a criação de COM.

RegisterTypeForComClients(Type, Guid)

Registra o tipo especificado com COM usando o GUID especificado.

RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType)

Registra o tipo especificado com COM usando o contexto de execução e o tipo de conexão especificados.

ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.

(Herdado de Object)
TypeRepresentsComType(Type)

Indica se um tipo está marcado com o ComImportAttribute ou se é derivado de um tipo marcado com o ComImportAttribute e compartilha o mesmo GUID como o pai.

TypeRequiresRegistration(Type)

Determina se o tipo especificado requer registro.

UnregisterAssembly(Assembly)

Cancela o registro das classes em um assembly gerenciado.

UnregisterTypeForComClients(Int32)

Remove as referências a um tipo registrado com o método RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType).

Aplica-se a

Confira também