PropertyExpressionCollection.Contains 方法

定义

重载

Contains(PropertyExpression)

确定集合中是否包含所提供的属性表达式对象。

Contains(String)

确定集合中是否包含所提供的属性表达式对象。

Contains(PropertyExpression)

确定集合中是否包含所提供的属性表达式对象。

public:
 virtual bool Contains(Microsoft::VisualStudio::TestTools::UITesting::PropertyExpression ^ item);
public bool Contains (Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression item);
abstract member Contains : Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression -> bool
override this.Contains : Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression -> bool
Public Function Contains (item As PropertyExpression) As Boolean

参数

返回

Boolean

如果集合包含提供的属性表达式对象,则为 true; 否则为。否则为 false。

实现

适用于

Contains(String)

确定集合中是否包含所提供的属性表达式对象。

public:
 bool Contains(System::String ^ propertyName);
public bool Contains (string propertyName);
member this.Contains : string -> bool
Public Function Contains (propertyName As String) As Boolean

参数

propertyName
String

属性的名称。

返回

Boolean

如果集合包含具有提供的属性名称的项,则为 true; 否则为。否则为 false。

适用于