Inserts the specified SortField instance into this list at the specified index.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
sortField As SortField _
)
public void Insert(
int index,
SortField sortField
)
public:
void Insert(
int index,
SortField^ sortField
)
member Insert :
index:int *
sortField:SortField -> unit
public function Insert(
index : int,
sortField : SortField
)
Parameters
index
Type: System.Int32The index at which to insert the specified SortField.
sortField
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.SortFieldThe SortField instance to insert into this list.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The sortField parameter is null. |
| ArgumentOutOfRangeException | The specified index is out of range. |
| ArgumentException | The specified SortField already occurs in this list. |
| FieldDefinitionNotExistException | The name parameter does not resolve to an existing FieldDefinition. |
.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.