DbExpressionBuilder.ToSortClauseDescending 方法

定義

使用遞減的排序次序和預設的定序,建立新的 DbSortClause

多載

ToSortClauseDescending(DbExpression)

使用遞減的排序次序和預設的定序,建立新的 DbSortClause

ToSortClauseDescending(DbExpression, String)

使用遞減的排序次序和指定的定序,建立新的 DbSortClause

ToSortClauseDescending(DbExpression)

使用遞減的排序次序和預設的定序,建立新的 DbSortClause

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortClause ^ ToSortClauseDescending(System::Data::Common::CommandTrees::DbExpression ^ key);
public static System.Data.Common.CommandTrees.DbSortClause ToSortClauseDescending (this System.Data.Common.CommandTrees.DbExpression key);
static member ToSortClauseDescending : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClauseDescending (key As DbExpression) As DbSortClause

參數

key
DbExpression

可定義排序索引鍵的運算式。

傳回

含有指定之排序鍵及遞減排序順序的新排序子句。

例外狀況

key 為 null。

key 沒有可比較順序結果類型。

適用於

ToSortClauseDescending(DbExpression, String)

使用遞減的排序次序和指定的定序,建立新的 DbSortClause

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbSortClause ^ ToSortClauseDescending(System::Data::Common::CommandTrees::DbExpression ^ key, System::String ^ collation);
public static System.Data.Common.CommandTrees.DbSortClause ToSortClauseDescending (this System.Data.Common.CommandTrees.DbExpression key, string collation);
static member ToSortClauseDescending : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbSortClause
<Extension()>
Public Function ToSortClauseDescending (key As DbExpression, collation As String) As DbSortClause

參數

key
DbExpression

可定義排序索引鍵的運算式。

collation
String

要做為排序依據的定序。

傳回

含有指定之排序鍵、定序及遞減排序順序的新排序子句。

例外狀況

key 為 null。

collation 是空的或僅包含空白字元。

key 沒有可比較順序結果類型。

適用於