Share via


SolutionPersistenceRegistrationAttribute Třída

Definice

Tento atribut přidá název vlastnosti trvalosti řešení a související typ GUID. Příklad: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\SolutionPersistence\MyProperty] "Default"="{AAAA53CC-3D4F-40a2-BD4D-4F3419755476}"

public ref class SolutionPersistenceRegistrationAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class SolutionPersistenceRegistrationAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class SolutionPersistenceRegistrationAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type SolutionPersistenceRegistrationAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class SolutionPersistenceRegistrationAttribute
Inherits RegistrationAttribute
Dědičnost
SolutionPersistenceRegistrationAttribute
Atributy

Poznámky

Příklad:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\SolutionPersistence\MyProperty]

"Výchozí"="{AAAA53CC-3D4F-40a2-BD4D-4F3419755476}"

Konstruktory

SolutionPersistenceRegistrationAttribute(String)

Vytvoří nový atribut SolutionPersistenceRegistrationAttribute pro registraci atributu trvalosti řešení pro zadaný kontext.

Vlastnosti

PropName

Získání názvu vlastnosti

TypeId

Přepište vlastnost TypeID, aby mohly odvozené třídy RegistrationAttribute pracovat s System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Získá cestu registru (vzhledem k kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Volá se pro registraci tohoto atributu v daném kontextu. Kontext obsahuje umístění, kam se mají umístit informace o registraci. Obsahuje také další informace, jako je zaregistrovaný typ a informace o cestě.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušte registraci této vlastnosti.

Platí pro