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
IsRemotable
IsWritableByGuests
JsonSchemaResourceId
Name

获取设置的名称。

NameResourceId
PackageGuid
Scope

获取设置的作用域。

SearchKeywordsResourceId
Storage

获取设置的存储。

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

调用以便向给定的上下文注册此属性。 上下文包含应放置注册信息的位置。 它还包含注册类型和路径信息之类的内容。

Unregister(RegistrationAttribute+RegistrationContext)

注销. 永远不会调用。

适用于