RegistrationServices Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Udostępnia zestaw usług do rejestrowania i wyrejestrowania zarządzanych zestawów do użycia z 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
- Dziedziczenie
-
RegistrationServices
- Atrybuty
- Implementuje
Uwagi
Rejestracja jest potrzebna, gdy obiekty w zestawie są używane przez klientów COM. Narzędzia Regasm.exe (Assembly Registration Tool) i Microsoft Visual Studio 2005 używają metod ujawnionych przez klasę do dodawania lub usuwania wpisów rejestru włączających com dla zarządzanych RegistrationServices zestawów.
Następujące metody mogą pomóc w przygotowaniu pliku rejestracji:
Mimo że te metody pomagają w zbieraniu informacji, które mają być używane w pliku rejestracji, w rzeczywistości nie tworzyć pliku rejestracji. Zamiast tego można użyć narzędzia Regasm.exe (Assembly Registration Tool) z opcją /regfile
, aby wykonać to zadanie. RegistrationServices Metody nie mogą eksportować i rejestrować biblioteki typów. Aby wyeksportować i zarejestrować bibliotekę typów, można użyć narzędzia Regasm.exe (Assembly Registration Tool) i narzędzia Tlbexp.exe (eksporter biblioteki typów).
Konstruktory
RegistrationServices() |
Inicjuje nowe wystąpienie klasy RegistrationServices. |
Metody
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu. (Odziedziczone po Object) |
GetManagedCategoryGuid() |
Zwraca identyfikator GUID kategorii COM zawierającej klasy zarządzane. |
GetProgIdForType(Type) |
Pobiera identyfikator ProgID COM dla określonego typu. |
GetRegistrableTypesInAssembly(Assembly) |
Pobiera listę klas w zestawie, które zostałyby zarejestrowane przez wywołanie klasy RegisterAssembly(Assembly, AssemblyRegistrationFlags) . |
GetType() |
Type Pobiera wartość bieżącego wystąpienia. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy płytkią kopię bieżącego Objectelementu . (Odziedziczone po Object) |
RegisterAssembly(Assembly, AssemblyRegistrationFlags) |
Rejestruje klasy w zestawie zarządzanym, aby umożliwić tworzenie z modelu COM. |
RegisterTypeForComClients(Type, Guid) |
Rejestruje określony typ w com przy użyciu określonego identyfikatora GUID. |
RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) |
Rejestruje określony typ za pomocą com przy użyciu określonego kontekstu wykonywania i typu połączenia. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt. (Odziedziczone po Object) |
TypeRepresentsComType(Type) |
Wskazuje, czy typ jest oznaczony znakiem , czy pochodzi od typu oznaczonego za pomocą elementu i ma ten sam identyfikator GUID co ComImportAttribute ComImportAttribute element nadrzędny. |
TypeRequiresRegistration(Type) |
Określa, czy określony typ wymaga rejestracji. |
UnregisterAssembly(Assembly) |
Wyrejestrowywał klasy w zarządzanym zestawie. |
UnregisterTypeForComClients(Int32) |
Usuwa odwołania do typu zarejestrowanego za pomocą RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) metody . |