RegistrationServices Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Poskytuje sadu služeb pro registraci a zrušení registrace spravovaných sestavení pro použití z modelu 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
- Dědičnost
-
RegistrationServices
- Atributy
- Implementuje
Poznámky
Registrace je nutná v případě, že klienti modelu COM používají objekty v rámci sestavení. Nástroje Regasm.exe (Assembly Registration Tool) a Microsoft Visual Studio 2005 používají metody vystavené třídou k přidání nebo odebrání položek registru umožňujících com pro spravovaná RegistrationServices sestavení.
Při přípravě registračního souboru vám mohou pomoci následující metody:
I když tyto metody pomáhají při shromažďování informací, které se mají použít v registračním souboru, ve skutečnosti nevytváří registrační soubor. Místo toho můžete použít nástroj Regasm.exe (Assembly Registration Tool) s možností /regfile
provedení této úlohy. RegistrationServices Metody nemohou exportovat a registrovat knihovnu typů. K exportu a registraci knihovny typů můžete použít nástrojRegasm.exe (nástroj pro registraci sestavení) a nástrojTlbexp.exe (exportér knihovny typů).
Konstruktory
RegistrationServices() |
Inicializuje novou instanci RegistrationServices třídy . |
Metody
Equals(Object) |
Určí, zda se zadaný objekt rovná aktuálnímu objektu. (Zděděno od Object) |
GetHashCode() |
Slouží jako výchozí funkce hash. (Zděděno od Object) |
GetManagedCategoryGuid() |
Vrátí identifikátor GUID kategorie modelu COM, která obsahuje spravované třídy. |
GetProgIdForType(Type) |
Načte COM ProgID pro zadaný typ. |
GetRegistrableTypesInAssembly(Assembly) |
Načte seznam tříd v sestavení, které by bylo zaregistrováno voláním RegisterAssembly(Assembly, AssemblyRegistrationFlags) . |
GetType() |
Type Získá aktuální instanci. (Zděděno od Object) |
MemberwiseClone() |
Vytvoří použádnou kopii aktuálního souboru Object. (Zděděno od Object) |
RegisterAssembly(Assembly, AssemblyRegistrationFlags) |
Zaregistruje třídy ve spravovaném sestavení, aby bylo možné vytvořit z modelu COM. |
RegisterTypeForComClients(Type, Guid) |
Zaregistruje zadaný typ v modelu COM pomocí zadaného identifikátoru GUID. |
RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) |
Zaregistruje zadaný typ v modelu COM pomocí zadaného kontextu spuštění a typu připojení. |
ToString() |
Vrátí řetězec, který představuje aktuální objekt. (Zděděno od Object) |
TypeRepresentsComType(Type) |
Určuje, zda je typ označen pomocí , nebo je odvozen z typu označeného a sdílí stejný ComImportAttribute identifikátor GUID jako nadřazený ComImportAttribute objekt. |
TypeRequiresRegistration(Type) |
Určuje, jestli zadaný typ vyžaduje registraci. |
UnregisterAssembly(Assembly) |
Zruší registraci tříd ve spravovaném sestavení. |
UnregisterTypeForComClients(Int32) |
Odebere odkazy na typ zaregistrovaný metodou RegisterTypeForComClients(Type, RegistrationClassContext, RegistrationConnectionType) . |