This documentation is archived and is not being maintained.

SortFieldList::Insert Method (Int32, String, SortType)

Inserts a new SortField that has the specified name and SortType into this list.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

public:
void Insert(
	int index, 
	String^ name, 
	SortType sortType
)

Parameters

index
Type: System::Int32

The index at which to insert the new SortField.

name
Type: System::String

The field name of the new SortField.

sortType
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::SortType

The sort type of the new SortField.

ExceptionCondition
ArgumentOutOfRangeException

The specified index is out of range.

ArgumentException

The specified SortField already occurs in this list.

Show: