This documentation is archived and is not being maintained.
SortFieldList::Add Method (String, SortType)
Visual Studio 2013
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Parameters
- name
- Type: System::String
The name of the new SortField instance to add to this list.
- sortType
- Type: Microsoft.TeamFoundation.WorkItemTracking.Client::SortType
The SortType of the new SortField instance to add to this list.
Return Value
Type: System::Int32The index of the newly added SortField instance or the index of an existing SortField that has the same field ID.
| Exception | Condition |
|---|---|
| ArgumentNullException | At least one of the parameters is null. |
| ArgumentException | The sortType parameter is not valid. |
| FieldDefinitionNotExistException | The name parameter does not resolve to an existing FieldDefinition. |
- 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.
Show: