ProvideSettingAttribute Class

Definition

Registers settings owned by a package. All registered settings must be persisted via SVsSettingsPersistenceManager. Settings that are persisted using SVsSettingsPersistenceManager but not registered will be private by default.

public ref class ProvideSettingAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideSettingAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideSettingAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type ProvideSettingAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideSettingAttribute
Inherits RegistrationAttribute
Inheritance
ProvideSettingAttribute
Attributes

Constructors

ProvideSettingAttribute(String, SettingScope, SettingStorage)

Initializes a new instance of one or more settings to be shared.

Properties

Name

Gets the name of the setting.

Scope

Gets the scope of the setting.

Storage

Gets the storage of the setting.

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 such as the type being registered and path information.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters. This is never called.

Applies to