UITestControlCollection.RemoveAll Method

Removes the controls matching the predicate.

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

Syntax

'Declaration
Public Sub RemoveAll ( _
    predicate As Predicate(Of UITestControl) _
)
public void RemoveAll(
    Predicate<UITestControl> predicate
)
public:
void RemoveAll(
    Predicate<UITestControl^>^ predicate
)
member RemoveAll : 
        predicate:Predicate<UITestControl> -> unit
public function RemoveAll(
    predicate : Predicate<UITestControl>
)

Parameters

  • predicate
    Type: Predicate<UITestControl>

    Predicate to match for removing the control.

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace