SettingsStore 类

读取或枚举的选定范围的集合和属性抽象类。它从 GetReadOnlySettingsStore 方法获取。

继承层次结构

System.Object
  Microsoft.VisualStudio.Settings.SettingsStore
    Microsoft.VisualStudio.Settings.WritableSettingsStore

命名空间:  Microsoft.VisualStudio.Settings
程序集:   Microsoft.VisualStudio.Settings(在 Microsoft.VisualStudio.Settings.dll 中)
  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public MustInherit Class SettingsStore
public abstract class SettingsStore

SettingsStore 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 SettingsStore

页首

方法

  名称 说明
公共方法 CollectionExists 检查集合中存在传递给此方法。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetBoolean(String, String) 返回数据类型是 [!:SettingsType.Int32] 如布尔值请求的属性的值。
公共方法 GetBoolean(String, String, Boolean) 返回数据类型是 [!:SettingsType.Int32] 如布尔值请求的属性的值。
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetInt32(String, String) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。
公共方法 GetInt32(String, String, Int32) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。
公共方法 GetInt64(String, String) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。
公共方法 GetInt64(String, String, Int64) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。
公共方法 GetLastWriteTime 提供即时的属性和的子集合中的最后一个编写次对给定的集合。
公共方法 GetMemoryStream 返回数据类型是 [!:SettingsType.Binary]请求的属性的值。为了可以立即使用访问基础字节数组 [!:MemoryStream.ToArray] 方法。
公共方法 GetPropertyCount 返回属性数。给定集合中。
公共方法 GetPropertyNames 返回属性的名称在给定集合中。
公共方法 GetPropertyType 返回请求的属性的类型。
公共方法 GetString(String, String) 返回数据类型是 [!:SettingsType.String]请求的属性的值。
公共方法 GetString(String, String, String) 返回数据类型是 [!:SettingsType.String]请求的属性的值。
公共方法 GetSubCollectionCount 返回子回收的次数在给定集合中。
公共方法 GetSubCollectionNames 返回子集合的名称在给定集合中。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetUInt32(String, String) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。
公共方法 GetUInt32(String, String, UInt32) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。
公共方法 GetUInt64(String, String) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。
公共方法 GetUInt64(String, String, UInt64) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 PropertyExists 检查属性是否存在传递给此方法。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

在方法此类,因此,如果集合路径提供为空字符串 (""),则表示顶级集合。如果属性名称为空字符串,它表示集合的默认属性。

集合可以包含属性和子集合。子集合路径描述与内容的分隔符在文件系统。同样,分隔符为 “\” (杠) 字符。

示例

子集合路径的示例包括:“根集合 \Internal Collection\Leaf Collection”。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Settings 命名空间