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
'Declaración
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
- index
Type: System.Int32
The index at which to insert the new SortField.
- name
Type: System.String
The field name of the new SortField.
- sortType
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.SortType
The sort type of the new SortField.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The specified index is out of range. |
ArgumentException | The specified SortField already occurs in this list. |
.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.