This documentation is archived and is not being maintained.

SortFieldList::Insert Method (Int32, SortField)

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)

public:
void Insert(
	int index, 
	SortField^ sortField
)

Parameters

index
Type: System::Int32

The index at which to insert the specified SortField.

sortField
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::SortField

The SortField instance to insert into this list.

ExceptionCondition
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.

Show: