SortKey 类

定义

SortKey 类存储供排序控件使用的排序条件。The SortKey class stores sort criteria for use by sort controls.

public ref class SortKey
public class SortKey
type SortKey = class
Public Class SortKey
继承
SortKey

构造函数

SortKey()

SortKey() 构造函数创建并初始化 SortKey 类的新实例。The SortKey() constructor creates and initializes a new instance of the SortKey class.

SortKey(String, String, Boolean)

SortKey(String, String, Boolean) 构造函数使用指定的特性名称、匹配规则和排序顺序创建并初始化 SortKey 类的新实例。The SortKey(String, String, Boolean) constructor creates and initializes a new instance of the SortKey class using the specified attribute name, matching rule, and sort order.

属性

AttributeName

AttributeName 属性指定要用作排序关键字的特性的名称。The AttributeName property specifies the name of the attribute to use as a sort key.

MatchingRule

MatchingRule 属性指定用于排序的匹配规则的对象标识符 (OID)。The MatchingRule property specifies the object identifier (OID) of the matching rule for the sort.

ReverseOrder

ReverseOrder 属性指定是否应以相反顺序返回排序。The ReverseOrder property specifies if the sort should be returned in reverse order.

方法

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)

适用于