Share via


ProvideWorkspaceSettingsAttribute クラス

定義

ProvideWorkspaceSettingsAttribute クラス。 OpenFolder 設定で使用するワークスペース設定ファイルを登録します。

public ref class ProvideWorkspaceSettingsAttribute : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class)]
public class ProvideWorkspaceSettingsAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class)>]
type ProvideWorkspaceSettingsAttribute = class
    inherit RegistrationAttribute
Public Class ProvideWorkspaceSettingsAttribute
Inherits RegistrationAttribute
継承
ProvideWorkspaceSettingsAttribute
属性

コンストラクター

ProvideWorkspaceSettingsAttribute(String, String)

ProvideWorkspaceSettingsAttribute クラスの新しいインスタンスを初期化します。

プロパティ

RelativeSettingsJsonPath

拡張子内に存在するsettings.json ファイルへの相対パスを取得します。

SettingName

設定名を取得または設定します。 既定値は、オブジェクトの構築中に生成されるランダムな GUID です。

SettingsType

設定の種類 ("VSWorkspaceSettings" など) を取得します。

TypeId

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

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

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

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

regpkg.exe などの外部登録ツールによって呼び出されると、この VSPackage を特定のコンテキストに登録します。 詳細については、「VSPackage の登録」を参照してください。

Unregister(RegistrationAttribute+RegistrationContext)

指定されたコンテキストでこの属性の登録を解除します。

適用対象