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

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

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

當外部註冊工具如 regpkg.exe 呼叫時,向指定的內容註冊此 VSPackage。 如需詳細資訊,請參閱註冊 VSPackages。

Unregister(RegistrationAttribute+RegistrationContext)

呼叫以取消註冊這個具有指定內容的屬性。

適用於