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.UITestControlThe UITestControl to remove from the UITestControlCollection.
Return Value
Type: Boolean
true if item was found and removed; otherwise, false.
Implements
ICollection.Remove(UTP)
.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.