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)
Syntax
'Declaração
Public Function Add ( _
sortField As SortField _
) As Integer
public int Add(
SortField sortField
)
public:
int Add(
SortField^ sortField
)
member Add :
sortField:SortField -> int
public function Add(
sortField : SortField
) : int
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The sortField parameter is null. |
.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.