Share via


SolutionPersistenceRegistrationAttribute Class

Definition

This attribute adds a solution persistence property name and related Guid type. For Example: [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
Inheritance
SolutionPersistenceRegistrationAttribute
Attributes

Remarks

For example:

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

"Default"="{AAAA53CC-3D4F-40a2-BD4D-4F3419755476}"

Constructors

SolutionPersistenceRegistrationAttribute(String)

Creates a new SolutionPersistenceRegistrationAttribute attribute to register a solution persistence attribute for the provided context.

Properties

PropName

Get the property name

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. It also contains other information such as the type being registered and path information.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this property.

Applies to