Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SortDescription Structure
Collapse the table of content
Expand the table of content

SortDescription Structure

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

Namespace:  System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.

public struct SortDescription
<SortDescription .../>

The SortDescription type exposes the following members.

Public methodSortDescriptionInitializes a new instance of the SortDescription structure.

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

Public methodEqualsCompares the specified instance and the current instance of SortDescription for value equality. (Overrides ValueType.Equals(Object).)
Public methodGetHashCodeReturns the hash code for this instance of SortDescription. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public operatorStatic memberEqualityCompares two SortDescription objects for value equality.
Public operatorStatic memberInequalityCompares two SortDescription objects for value inequality.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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