SortField Class

Represents a WorkItemField that can be used to sort the results of a query.

Inheritance Hierarchy

System.Object
Microsoft.TeamFoundation.WorkItemTracking.Client.SortField

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

Syntax

'Declaration
Public NotInheritable Class SortField
public sealed class SortField
public ref class SortField sealed
[<Sealed>]
type SortField =  class end
public final class SortField

The SortField type exposes the following members.

Constructors

Name Description
Public method SortField(FieldDefinition, SortType) Initializes a new SortField instance.
Public method SortField(WorkItemStore, String, SortType) Initializes a new SortField instance.

Top

Properties

Name Description
Public property FieldDefinition Gets the FieldDefinition of this field.
Public property SortType Gets the order by which this field is sorted.

Top

Methods

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The results of a query are represented by the WorkItemCollection class. The SortField represents the fields that may be used to sort the contents of a WorkItemCollection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace