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
'Declaration
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
store
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStoreThe WorkItemStore that contains this field.
name
Type: System.StringThe name of the FieldDefinition that defines this field.
sortType
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.SortTypeThe direction by which this field will be sorted.
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
- 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.