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)

パッケージによって提供される 1 つ以上の設定を宣言します。

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

パッケージによって提供される 1 つ以上の設定を宣言します。

プロパティ

DescriptionResourceId

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

IsRemotable

接続時にローカル インスタンスではなくリモート インスタンスにこの設定を適用するかどうかを制御する値を取得または設定します。

IsWritableByGuests

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

JsonSchemaResourceId

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

Name

設定の名前を取得します。

NameResourceId

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

PackageGuid

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

Scope

設定のスコープを取得します。

SearchKeywordsResourceId

パッケージが所有する設定を登録します。 登録されているすべての設定は、SVsSettingsPersistenceManager を使用して保持する必要があります。 SVsSettingsPersistenceManager を使用して永続化され、登録されていない設定は、既定ではプライベートになります。

Storage

設定のストレージを取得します。

TypeId

RegistrationAttribute 派生クラスが System.ComponentModel.TypeDescriptor.GetAttributes(...) と連携できるように、TypeID プロパティをオーバーライドします。このプロパティから派生した属性は、クラスに適用できるインスタンスをより適切に制御する必要がある場合にのみ、このプロパティをオーバーライドする必要があります。

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

VSPackage のレジストリ パス (アプリケーションのレジストリ ルートに対する相対パス) を取得します。

(継承元 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

指定されたコンテキストでこの属性を登録します。 コンテキストには、登録情報の配置先の場所が含まれます。 また、登録されている型やパス情報なども含まれます。

Unregister(RegistrationAttribute+RegistrationContext)

この属性の登録を解除する

適用対象