SortDescription 结构

定义

定义要用作集合的排序条件的方向和属性名。Defines the direction and the property name to be used as the criteria for sorting a collection.

public value class SortDescription
public struct SortDescription
type SortDescription = struct
Public Structure SortDescription
继承
SortDescription

构造函数

SortDescription(String, ListSortDirection)

初始化 SortDescription 结构的新实例。Initializes a new instance of the SortDescription structure.

属性

Direction

获取或设置一个值,该值指示是按升序还是降序进行排序。Gets or sets a value that indicates whether to sort in ascending or descending order.

IsSealed

获取一个值,该值指示此对象是否处于不可变状态。Gets a value that indicates whether this object is in an immutable state.

PropertyName

获取或设置要用作排序条件的属性名称。Gets or sets the property name being used as the sorting criteria.

方法

Equals(Object)

比较 SortDescription 的指定实例与当前实例的值是否相等。Compares the specified instance and the current instance of SortDescription for value equality.

GetHashCode()

返回 SortDescription 的此实例的哈希代码。Returns the hash code for this instance of SortDescription.

运算符

Equality(SortDescription, SortDescription)

比较两个 SortDescription 对象的值是否相等。Compares two SortDescription objects for value equality.

Inequality(SortDescription, SortDescription)

比较两个 SortDescription 对象的值是否不相等。Compares two SortDescription objects for value inequality.

适用于