更新所指定的属性的值设置为特定字符串值,并将其数据类型。 [!:SettingsType.String]时。
命名空间: Microsoft.VisualStudio.Settings
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
Microsoft.VisualStudio.Settings(在 Microsoft.VisualStudio.Settings.dll 中)
语法
声明
Public MustOverride Sub SetString ( _
collectionPath As String, _
propertyName As String, _
value As String _
)
public abstract void SetString(
string collectionPath,
string propertyName,
string value
)
参数
- collectionPath
类型:System.String
属性的集合的路径。
- propertyName
类型:System.String
属性的名称。
- value
类型:System.String
属性的新值。
异常
异常 | 条件 |
---|---|
ArgumentException | 如果集合不存在,会引发此异常。 |
备注
如果属性以前的数据类型不同,则复盖它。
如果属性不存在,则创建一个。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。