Partilhar via


ProvideSettingAttribute Constructors

Definition

Overloads

ProvideSettingAttribute(String, SettingScope, SettingStorage)

Declares one or more settings provided by a package.

ProvideSettingAttribute(String, SettingScope, SettingStorage, String, String, String, String, String)

Declares one or more settings provided by a package.

ProvideSettingAttribute(String, SettingScope, SettingStorage)

Declares one or more settings provided by a package.

public:
 ProvideSettingAttribute(System::String ^ name, Microsoft::VisualStudio::Shell::SettingScope scope, Microsoft::VisualStudio::Shell::SettingStorage storage);
public:
 ProvideSettingAttribute(Platform::String ^ name, Microsoft::VisualStudio::Shell::SettingScope scope, Microsoft::VisualStudio::Shell::SettingStorage storage);
 ProvideSettingAttribute(std::wstring const & name, Microsoft::VisualStudio::Shell::SettingScope scope, Microsoft::VisualStudio::Shell::SettingStorage storage);
public ProvideSettingAttribute (string name, Microsoft.VisualStudio.Shell.SettingScope scope, Microsoft.VisualStudio.Shell.SettingStorage storage);
new Microsoft.VisualStudio.Shell.ProvideSettingAttribute : string * Microsoft.VisualStudio.Shell.SettingScope * Microsoft.VisualStudio.Shell.SettingStorage -> Microsoft.VisualStudio.Shell.ProvideSettingAttribute
Public Sub New (name As String, scope As SettingScope, storage As SettingStorage)

Parameters

name
String

The setting name. Wildcards are supported, like MyCompany.MyFeature.*

scope
SettingScope

Indicates whether the setting should be shared and/or roamed.

storage
SettingStorage

Indicates where the setting should be persisted.

Applies to

ProvideSettingAttribute(String, SettingScope, SettingStorage, String, String, String, String, String)

Declares one or more settings provided by a package.

public:
 ProvideSettingAttribute(System::String ^ name, Microsoft::VisualStudio::Shell::SettingScope scope, Microsoft::VisualStudio::Shell::SettingStorage storage, System::String ^ packageGuid, System::String ^ nameResourceId, System::String ^ descriptionResourceId, System::String ^ searchKeywordsResourceId, System::String ^ jsonSchemaResourceId);
public ProvideSettingAttribute (string name, Microsoft.VisualStudio.Shell.SettingScope scope, Microsoft.VisualStudio.Shell.SettingStorage storage, string packageGuid, string nameResourceId, string descriptionResourceId, string searchKeywordsResourceId, string jsonSchemaResourceId);
new Microsoft.VisualStudio.Shell.ProvideSettingAttribute : string * Microsoft.VisualStudio.Shell.SettingScope * Microsoft.VisualStudio.Shell.SettingStorage * string * string * string * string * string -> Microsoft.VisualStudio.Shell.ProvideSettingAttribute
Public Sub New (name As String, scope As SettingScope, storage As SettingStorage, packageGuid As String, nameResourceId As String, descriptionResourceId As String, searchKeywordsResourceId As String, jsonSchemaResourceId As String)

Parameters

name
String

The setting name. Wildcards are supported, like MyCompany.MyFeature.*

scope
SettingScope

Indicates whether the setting should be shared and/or roamed.

storage
SettingStorage

Indicates where the setting should be persisted.

packageGuid
String

The GUID of the owning package, as a string.

nameResourceId
String

The ID of a localized resource representing the setting name.

descriptionResourceId
String

The ID of a localized resource representing the setting description.

searchKeywordsResourceId
String

The ID of a localized resource containing words that should be used for searching.

jsonSchemaResourceId
String

The ID of a localized resource containing the JSON schema for this setting. See https://json-schema.org/.

Applies to