SortDescription Structure
TOC
Collapse the table of content
Expand the table of content

SortDescription Structure

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the direction and the property name that will be used as the criteria for sorting a collection.

Namespace:  System.ComponentModel
Assembly:  System.Windows (in System.Windows.dll)

No code example is currently available or this language may not be supported.

The SortDescription type exposes the following members.

  NameDescription
Public methodSortDescriptionInitializes a new instance of the SortDescription structure.
Top

  NameDescription
Public propertyDirectionGets or sets a value that indicates whether to sort in ascending or descending order.
Public propertyIsSealedGets a value that indicates whether this structure is in an immutable state.
Public propertyPropertyNameGets or sets the property name being used as the sorting criteria.
Top

  NameDescription
Public methodEqualsCompares the specified instance and the current instance of SortDescription for value equality. (Overrides ValueType::Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for the current instance. (Overrides ValueType::GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

  NameDescription
Public operatorStatic memberEqualityCompares two SortDescription instances for value equality.
Public operatorStatic memberInequalityCompares two SortDescription instances for value inequality.
Top

This type is used by the SortDescriptions property of the ICollectionView interface.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

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

Show:
© 2017 Microsoft