UITestControlCollection.Remove Method

Removes the first occurrence of UITestControl from the UITestControlCollection.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if item was found and removed; otherwise, false.

Implements

ICollection<T>.Remove(T)

.NET Framework Security

See Also

Reference

UITestControlCollection Class

Microsoft.VisualStudio.TestTools.UITesting Namespace