QueryBuilder.ThenByNullable<'T,'Q,'Key> 方法 (F#)

查询运算符执行后续排序升序排序的可以为 null 的给定排序键为止选取的元素。 此运算符只能在 sortBy之后只使用、sortByDescending、thenBy 或 thenByDescending,也可以为 null 的变量。

Namespace/Module Path:Microsoft.FSharp.Linq

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature:
member this.ThenByNullable : QuerySource<'T,'Q> * ('T -> Nullable<'Key>) -> QuerySource<'T,'Q> when 'Key : (IComparable) and 'Key : (new : unit ->  'Key) and 'Key : struct and 'Key :> ValueType

// Usage:
queryBuilder.ThenByNullable (source, keySelector)

参数

  • source
    类型:QuerySource<'T,'Q>

    在查询

  • keySelector
    类型:'T -> Nullable<T><'Key>

    指定字段排序。

返回值

排序的查询。

备注

有关更多信息和示例,请参见 查询表达式(f#)

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:4.0,可移植

请参见

参考

Linq.QueryBuilder 类 (F#)

Microsoft.FSharp.Linq 命名空间 (F#)

hh225374(v=vs.110).md