This documentation is archived and is not being maintained.

SortFieldList::Add Method (SortField)

Adds the specified SortField instance to this list.

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

public:
int Add(
	SortField^ sortField
)

Parameters

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

The SortField instance to add to this list.

Return Value

Type: System::Int32
The index of the newly added SortField or the index of an existing SortField that has the same field ID.

ExceptionCondition
ArgumentNullException

The sortField parameter is null.

Show: