Share via


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)

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    sortField As SortField _
)
public void Insert(
    int index,
    SortField sortField
)
public:
void Insert(
    int index, 
    SortField^ sortField
)
member Insert : 
        index:int * 
        sortField:SortField -> unit
public function Insert(
    index : int, 
    sortField : SortField
)

Parameters

Exceptions

Exception Condition
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.

.NET Framework Security

See Also

Reference

SortFieldList Class

Insert Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace