PropertyExpressionObservableCollection.Contains 方法 (String)

选定该特定属性是否存在于集合

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting(在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)

语法

声明
Public Function Contains ( _
    propertyName As String _
) As Boolean
public bool Contains(
    string propertyName
)
public:
bool Contains(
    String^ propertyName
)
member Contains : 
        propertyName:string -> bool
public function Contains(
    propertyName : String
) : boolean

参数

  • propertyName
    类型:String

    将找到的属性名称。

返回值

类型:Boolean
如果存在为 true。

.NET Framework 安全性

请参阅

参考

PropertyExpressionObservableCollection 类

Contains 重载

Microsoft.VisualStudio.TestTools.UITesting 命名空间