SortDescription SortDescription SortDescription SortDescription Struct

定義

定義要用來做為排序集合之準則的方向和屬性名稱。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
繼承
SortDescriptionSortDescriptionSortDescriptionSortDescription

建構函式

SortDescription(String, ListSortDirection) SortDescription(String, ListSortDirection) SortDescription(String, ListSortDirection) SortDescription(String, ListSortDirection)

初始化 SortDescription 結構的新執行個體。Initializes a new instance of the SortDescription structure.

屬性

Direction Direction Direction Direction

取得或設定值,指出要依遞增或遞減次序排序。Gets or sets a value that indicates whether to sort in ascending or descending order.

IsSealed IsSealed IsSealed IsSealed

取得值,這個值表示這個物件是否處於不變的狀態。Gets a value that indicates whether this object is in an immutable state.

PropertyName PropertyName PropertyName PropertyName

取得或設定當做排序準則的屬性名稱。Gets or sets the property name being used as the sorting criteria.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較 SortDescription 之指定的執行個體和目前執行個體的值是否相等。Compares the specified instance and the current instance of SortDescription for value equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個 SortDescription 執行個體的雜湊程式碼。Returns the hash code for this instance of SortDescription.

運算子

Equality(SortDescription, SortDescription) Equality(SortDescription, SortDescription) Equality(SortDescription, SortDescription) Equality(SortDescription, SortDescription)

比較兩個 SortDescription 物件的值是否相等。Compares two SortDescription objects for value equality.

Inequality(SortDescription, SortDescription) Inequality(SortDescription, SortDescription) Inequality(SortDescription, SortDescription) Inequality(SortDescription, SortDescription)

比較兩個 SortDescription 物件的值是否不相等。Compares two SortDescription objects for value inequality.

適用於