Share via


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)

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    name As String, _
    sortType As SortType _
)
public void Insert(
    int index,
    string name,
    SortType sortType
)
public:
void Insert(
    int index, 
    String^ name, 
    SortType sortType
)
member Insert : 
        index:int * 
        name:string * 
        sortType:SortType -> unit
public function Insert(
    index : int, 
    name : String, 
    sortType : SortType
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

The specified index is out of range.

ArgumentException

The specified SortField already occurs in this list.

.NET Framework Security

See Also

Reference

SortFieldList Class

Insert Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace