DeclarativeWebTest.InsertItemAt Method
Inserts a WebTestItem at the specified item index.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Sub InsertItemAt ( _
itemId As Integer, _
item As WebTestItem _
)
public void InsertItemAt(
int itemId,
WebTestItem item
)
public:
void InsertItemAt(
int itemId,
WebTestItem^ item
)
member InsertItemAt :
itemId:int *
item:WebTestItem -> unit
public function InsertItemAt(
itemId : int,
item : WebTestItem
)
Parameters
- itemId
Type: System.Int32
Zero-based sequence number of the WebTestItem within the Web performance test.
- item
Type: Microsoft.VisualStudio.TestTools.WebTesting.WebTestItem
The WebTestItem to insert.
Remarks
The new item is inserted before the item currently at the specified index, and if that item is in a transaction, condition, or loop the new item will also be in that state. If the itemId is greater than the largest itemId of any item in the Web performance test, the item is added to the end of the Web performance test (outside of any groups).
.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.