DbLimitExpression.Limit 屬性

定義

取得或設定表達式,指定從輸入集合傳回之項目數目的限制。

public:
 property System::Data::Common::CommandTrees::DbExpression ^ Limit { System::Data::Common::CommandTrees::DbExpression ^ get(); };
public System.Data.Common.CommandTrees.DbExpression Limit { get; }
member this.Limit : System.Data.Common.CommandTrees.DbExpression
Public ReadOnly Property Limit As DbExpression

屬性值

一個表達式,指定從輸入集合回傳的元素數量限制。

例外狀況

表達式為 null

該表達式不與 的指令樹 DbLimitExpression相關聯,或不是 DbConstantExpressionDbParameterReferenceExpression,或其結果型別不等於或無法升調為 64 位元整數型別。

適用於