SortOption 类

定义

指定如何对搜索结果进行排序。Specifies how to sort the results of a search.

public ref class SortOption
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public class SortOption
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))>]
type SortOption = class
Public Class SortOption
继承
SortOption
属性

构造函数

SortOption()

初始化 SortOption() 类的新实例。Initializes a new instance of the SortOption() class.

SortOption(String, SortDirection)

初始化 SortOption 类的新实例,而该类包含指定的属性名和指定的排序方向。Initializes a new instance of the SortOption class, which contains the specified property name and specified sort direction.

属性

Direction

获取或设置对查询结果进行排序的方向。Gets or sets the direction in which to sort the results of a query.

PropertyName

获取或设置作为排序方式的属性的名称。Gets or sets the name of the property to sort on.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅