PropertyCollection.RemoveProperty 方法

移除与指定键关联的属性。

命名空间:  Microsoft.VisualStudio.Utilities
程序集:  Microsoft.VisualStudio.CoreUtility(在 Microsoft.VisualStudio.CoreUtility.dll 中)

语法

声明
Public Function RemoveProperty ( _
    key As Object _
) As Boolean
public bool RemoveProperty(
    Object key
)
public:
bool RemoveProperty(
    Object^ key
)
member RemoveProperty : 
        key:Object -> bool
public function RemoveProperty(
    key : Object
) : boolean

参数

  • key
    类型:Object

    要移除的属性的键。

返回值

类型:Boolean
如果找到了属性并将其移除,则为 true;如果未找到属性,则为 false。

异常

异常 条件
ArgumentNullException

key 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

PropertyCollection 类

Microsoft.VisualStudio.Utilities 命名空间