語言

DbExpressionBuilder.Take(DbExpression, DbExpression) 方法

定義

建立 DbLimitExpression 一個新 Ratio,限制 Argument 集合中元素數至指定的 count 限制值。 系結的結果不會包含在輸出中。

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,包含指定的參數和計數限制值,且不包含綁定結果。

例外狀況

argument 或 count 為空值。

argument 沒有集合結果型別, count 也沒有等於或可升變為 64 位元整數型別的結果型別。

適用於