共用方式為


ProvideSettingAttribute 類別

定義

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideSettingAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideSettingAttribute
Inherits RegistrationAttribute
繼承
ProvideSettingAttribute
屬性

建構函式

ProvideSettingAttribute(String, SettingScope, SettingStorage)

宣告封裝提供的一或多個設定。

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

宣告封裝提供的一或多個設定。

屬性

DescriptionResourceId

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

IsRemotable

取得或設定值,控制此設定是否會在連線時套用至遠程實例,而不是本機實例。

IsWritableByGuests

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

JsonSchemaResourceId

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

Name

取得設定的名稱。

NameResourceId

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

PackageGuid

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

Scope

取得設定的範圍。

SearchKeywordsResourceId

註冊套件所擁有的設定。 所有已註冊的設定都必須透過 SVsSettingsPersistenceManager 保存。 使用 SVsSettingsPersistenceManager 保存但未註冊的設定預設為私用。

Storage

取得設定的記憶體。

TypeId

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別搭配 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性只有在需要對可套用至類別的實例有更好的控制權時,才必須覆寫此屬性。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

取得相對於 VSPackage 之應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

呼叫以註冊這個具有指定內容的屬性。 內容,其中包含用來放置註冊資訊的位置。 它也包含註冊的類型和路徑資訊。

Unregister(RegistrationAttribute+RegistrationContext)

取消註冊此屬性

適用於