UITestControlCollection.Insert Method
Inserts a UITestControl into the UITestControlCollection at the specified index.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
control As UITestControl _
)
public void Insert(
int index,
UITestControl control
)
public:
void Insert(
int index,
UITestControl^ control
)
member Insert :
index:int *
control:UITestControl -> unit
public function Insert(
index : int,
control : UITestControl
)
Parameters
index
Type: Int32The zero-based index at which control should be inserted.
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlThe UITestControl to insert.
.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.