PropertyCollection.ContainsProperty 方法

确定属性集合是否包含指定键的属性。

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

语法

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

参数

  • key
    类型:Object

    键。

返回值

类型:Boolean
如果属性存在,则为 true;否则为 false。

.NET Framework 安全性

请参阅

参考

PropertyCollection 类

Microsoft.VisualStudio.Utilities 命名空间