Partager via


SortFieldList Class

Represents a collection of SortFields that can be sorted by a query.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Common.OrderedVariableSizeList
    Microsoft.TeamFoundation.WorkItemTracking.Client.SortFieldList

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

Syntax

'Declaration
Public NotInheritable Class SortFieldList _
    Inherits OrderedVariableSizeList
public sealed class SortFieldList : OrderedVariableSizeList
public ref class SortFieldList sealed : public OrderedVariableSizeList
[<Sealed>]
type SortFieldList =  
    class 
        inherit OrderedVariableSizeList 
    end
public final class SortFieldList extends OrderedVariableSizeList

The SortFieldList type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements in this list. (Overrides OrderedVariableSizeList.Count.)
Public property IsFixedSize Obsolete. (Inherited from OrderedVariableSizeList.)
Public property IsReadOnly Obsolete. (Inherited from OrderedVariableSizeList.)
Public property IsSynchronized Obsolete. (Inherited from OrderedVariableSizeList.)
Public property Item Gets or sets the SortField element at the specified index.
Public property SyncRoot Obsolete. (Inherited from OrderedVariableSizeList.)

Top

Methods

  Name Description
Public method Add(SortField) Adds the specified SortField instance to this list.
Public method Add(String, SortType) Adds a new SortField instance to this list that has the specified name and SortType.
Public method Clear Clears this list. (Overrides OrderedVariableSizeList.Clear().)
Public method Contains Checks whether the specified SortField occurs in this list.
Public method CopyTo Obsolete. (Inherited from OrderedVariableSizeList.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator (Inherited from OrderedVariableSizeList.)
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 IndexOf Gets the index, in this list, of the specified SortField instance.
Public method IndexOfFieldId Gets the index, in this list, of the SortField that has the specified field ID.
Public method Insert(Int32, SortField) Inserts the specified SortField instance into this list at the specified index.
Public method Insert(Int32, String, SortType) Inserts a new SortField that has the specified name and SortType into this list.
Public method Remove(String) Removes the SortField that has the specified field name from this list.
Public method Remove(FieldDefinition) Removes the SortField that has the specified field definition from this list.
Public method Remove(SortField) Removes the specified SortField from this list.
Public method RemoveAt Removes the SortField at the specified index. (Overrides OrderedVariableSizeList.RemoveAt(Int32).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.Clear (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property ICollection.Count (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property IList.Item (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate method IList.RemoveAt (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from OrderedVariableSizeList.)
Explicit interface implemetationPrivate property IVersionTag.VersionTag (Inherited from OrderedVariableSizeList.)

Top

Remarks

This list cannot contain duplicate elements.

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