WritableSettingsStore.SetBoolean 方法

更新所指定的属性的值设置为特定布尔值,当将其数据类型。 [!:SettingsType.Int32]时。

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

语法

声明
Public MustOverride Sub SetBoolean ( _
    collectionPath As String, _
    propertyName As String, _
    value As Boolean _
)
public abstract void SetBoolean(
    string collectionPath,
    string propertyName,
    bool value
)

参数

  • collectionPath
    类型:System.String
    属性的集合的路径。

异常

异常 条件
ArgumentException

如果集合不存在,会引发此异常。

备注

如果属性以前的数据类型不同,则复盖它。

如果属性不存在,则创建一个。

.NET Framework 安全性

请参见

参考

WritableSettingsStore 类

Microsoft.VisualStudio.Settings 命名空间