共用方式為


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

'宣告
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

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

See Also

Reference

SortFieldList Class

Add Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace