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.js的相对路径。

SettingName

获取或设置设置名称。 默认为在对象构造过程中生成的随机 GUID。

SettingsType

获取 (的设置类型,例如 "Vsworkspacesettings.json" ) 。

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

通过外部注册工具(如 regpkg.exe)调用此 VSPackage。 有关详细信息,请参阅注册 Vspackage。

Unregister(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文撤消注册此属性。

适用于