WritableSettingsStore 类

读取和写入的抽象类选定范围的集合和属性。它从 GetWritableSettingsStore 方法获取。

继承层次结构

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

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

语法

声明
Public MustInherit Class WritableSettingsStore _
    Inherits SettingsStore
public abstract class WritableSettingsStore : SettingsStore

WritableSettingsStore 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 WritableSettingsStore

页首

方法

  名称 说明
公共方法 CollectionExists 检查集合中存在传递给此方法。 (继承自 SettingsStore。)
公共方法 CreateCollection 通过为每个嵌套集合创建特定集合路径,而跳过已经存在的控件时。
公共方法 DeleteCollection 删除递归删除所有子集合和属性的特定集合。它。如果集合不存在或为空字符串 ("") 然后将该方法返回 false。
公共方法 DeleteProperty 从集合中删除给定属性。如果属性或集合中不存在该方法返回 false。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetBoolean(String, String) 返回数据类型是 [!:SettingsType.Int32] 如布尔值请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetBoolean(String, String, Boolean) 返回数据类型是 [!:SettingsType.Int32] 如布尔值请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetInt32(String, String) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetInt32(String, String, Int32) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetInt64(String, String) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetInt64(String, String, Int64) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetLastWriteTime 提供即时的属性和的子集合中的最后一个编写次对给定的集合。 (继承自 SettingsStore。)
公共方法 GetMemoryStream 返回数据类型是 [!:SettingsType.Binary]请求的属性的值。为了可以立即使用访问基础字节数组 [!:MemoryStream.ToArray] 方法。 (继承自 SettingsStore。)
公共方法 GetPropertyCount 返回属性数。给定集合中。 (继承自 SettingsStore。)
公共方法 GetPropertyNames 返回属性的名称在给定集合中。 (继承自 SettingsStore。)
公共方法 GetPropertyType 返回请求的属性的类型。 (继承自 SettingsStore。)
公共方法 GetString(String, String) 返回数据类型是 [!:SettingsType.String]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetString(String, String, String) 返回数据类型是 [!:SettingsType.String]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetSubCollectionCount 返回子回收的次数在给定集合中。 (继承自 SettingsStore。)
公共方法 GetSubCollectionNames 返回子集合的名称在给定集合中。 (继承自 SettingsStore。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetUInt32(String, String) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetUInt32(String, String, UInt32) 返回数据类型是 [!:SettingsType.Int32]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetUInt64(String, String) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。 (继承自 SettingsStore。)
公共方法 GetUInt64(String, String, UInt64) 返回数据类型是 [!:SettingsType.Int64]请求的属性的值。 (继承自 SettingsStore。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 PropertyExists 检查属性是否存在传递给此方法。 (继承自 SettingsStore。)
公共方法 SetBoolean 更新所指定的属性的值设置为特定布尔值,当将其数据类型。 [!:SettingsType.Int32]时。
公共方法 SetInt32 更新所指定的属性的值设置为特定整数值,则将其数据类型。 [!:SettingsType.Int32]时。
公共方法 SetInt64 更新所指定的属性的值设置为特定长度的值,则将其数据类型。 [!:SettingsType.Int64]时。
公共方法 SetMemoryStream 更新所指定的属性的值设置为 MemoryStream 的位,当将其数据类型。 [!:SettingsType.Binary]时。
公共方法 SetString 更新所指定的属性的值设置为特定字符串值,并将其数据类型。 [!:SettingsType.String]时。
公共方法 SetUInt32 更新所指定的属性的值设置为特定无符号整数值,则将其数据类型。 [!:SettingsType.Int32]时。
公共方法 SetUInt64 更新所指定的属性的值设置为特定无符号 long 值,则将其数据类型。 [!:SettingsType.Int64]时。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

此类从其继承从它的所有功能 SettingsStore 因此派生。它添加属性和集合处理能力。它上面。

线程安全

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

请参见

参考

Microsoft.VisualStudio.Settings 命名空间