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
- item
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
The UITestControl to remove from the UITestControlCollection.
Return Value
Type: System.Boolean
true if item was found and removed; otherwise, false.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.