UITestControlCollection.Contains Method

Determines whether the UITestControlCollection contains a specific UITestControl.

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

Syntax

'Declaration
Public Function Contains ( _
    item As UITestControl _
) As Boolean
public bool Contains(
    UITestControl item
)
public:
virtual bool Contains(
    UITestControl^ item
) sealed
abstract Contains : 
        item:UITestControl -> bool 
override Contains : 
        item:UITestControl -> bool 
public final function Contains(
    item : UITestControl
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the UITestControlCollection contains the specified UITestControl; otherwise, false.

Implements

ICollection<T>.Contains(T)

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace