共用方式為


SortField Constructor (WorkItemStore, String, SortType)

Initializes a new SortField instance.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'宣告
Public Sub New ( _
    store As WorkItemStore, _
    name As String, _
    sortType As SortType _
)
public SortField(
    WorkItemStore store,
    string name,
    SortType sortType
)
public:
SortField(
    WorkItemStore^ store, 
    String^ name, 
    SortType sortType
)
new : 
        store:WorkItemStore * 
        name:string * 
        sortType:SortType -> SortField
public function SortField(
    store : WorkItemStore, 
    name : String, 
    sortType : SortType
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

One or more of the parameters is null.

ArgumentException

The sortType parameter is not valid.

FieldDefinitionNotExistException

The name parameter does not resolve to an existing FieldDefinition.

.NET Framework Security

See Also

Reference

SortField Class

SortField Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace