Delen via


PropertyExpressionCollection.Contains Method (String)

Determines whether the collection contains the provided property expression object.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
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

Parameters

  • propertyName
    Type: String

    The name of a property.

Return Value

Type: Boolean
true if the collection contains an item that has the provided property name; otherwise, false.

.NET Framework Security

See Also

Reference

PropertyExpressionCollection Class

Contains Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace