DbExpressionBuilder.Take(DbExpression, DbExpression) 方法

定義

建立新的 DbLimitExpression,它會將 Argument 集合中的項目數目限制為指定的計數限制值。 輸出中不包含繫結結果。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbLimitExpression ^ Take(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ count);
public static System.Data.Common.CommandTrees.DbLimitExpression Take (this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Common.CommandTrees.DbExpression count);
static member Take : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbLimitExpression
<Extension()>
Public Function Take (argument As DbExpression, count As DbExpression) As DbLimitExpression

參數

argument
DbExpression

指定輸入集合的運算式。

count
DbExpression

指定限制值的運算式。

傳回

含有指定之引數及計數限制值但不含繫結結果的新 DbLimitExpression。

例外狀況

argumentcount 為 null。

argument 沒有集合結果類型, count 沒有等於或可提升至64位整數類型的結果類型。

適用於