Limit Property
Collapse the table of content
Expand the table of content

DbLimitExpression.Limit Property

 

Gets or sets an expression that specifies the limit on the number of elements returned from the input collection.

Namespace:   System.Data.Common.CommandTrees
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public DbExpression Limit { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the limit on the number of elements returned from the input collection.

Exception Condition
ArgumentNullException

The expression is null.

ArgumentException

The expression is not associated with the command tree of the DbLimitExpression, or is not one of DbConstantExpression or DbParameterReferenceExpression, or its result type is not equal or promotable to a 64-bit integer type.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft