从集合中删除给定属性。如果属性或集合中不存在该方法返回 false。
命名空间: Microsoft.VisualStudio.Settings
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
Microsoft.VisualStudio.Settings(在 Microsoft.VisualStudio.Settings.dll 中)
语法
声明
Public MustOverride Function DeleteProperty ( _
collectionPath As String, _
propertyName As String _
) As Boolean
public abstract bool DeleteProperty(
string collectionPath,
string propertyName
)
参数
- collectionPath
类型:System.String
包含要删除的属性集合。
- propertyName
类型:System.String
属性的名称。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。