ODataQueryOptions.LimitResults Method

Definition

Overloads

LimitResults<T>(IQueryable<T>, Int32, Boolean)

Limits the query results to a maximum number of results.

LimitResults<T>(IQueryable<T>, Int32, Boolean, Boolean)

Limits the query results to a maximum number of results.

LimitResults<T>(IQueryable<T>, Int32, Boolean)

Limits the query results to a maximum number of results.

public static System.Linq.IQueryable<T> LimitResults<T> (System.Linq.IQueryable<T> queryable, int limit, out bool resultsLimited);
static member LimitResults : System.Linq.IQueryable<'T> * int * bool -> System.Linq.IQueryable<'T>
Public Shared Function LimitResults(Of T) (queryable As IQueryable(Of T), limit As Integer, ByRef resultsLimited As Boolean) As IQueryable(Of T)

Type Parameters

T

The entity CLR type

Parameters

queryable
IQueryable<T>

The queryable to limit.

limit
Int32

The query result limit.

resultsLimited
Boolean

true if the query results were limited; false otherwise

Returns

The limited query results.

Applies to

LimitResults<T>(IQueryable<T>, Int32, Boolean, Boolean)

Limits the query results to a maximum number of results.

public static System.Linq.IQueryable<T> LimitResults<T> (System.Linq.IQueryable<T> queryable, int limit, bool parameterize, out bool resultsLimited);
static member LimitResults : System.Linq.IQueryable<'T> * int * bool * bool -> System.Linq.IQueryable<'T>
Public Shared Function LimitResults(Of T) (queryable As IQueryable(Of T), limit As Integer, parameterize As Boolean, ByRef resultsLimited As Boolean) As IQueryable(Of T)

Type Parameters

T

The entity CLR type

Parameters

queryable
IQueryable<T>

The queryable to limit.

limit
Int32

The query result limit.

parameterize
Boolean

Flag indicating whether constants should be parameterized

resultsLimited
Boolean

true if the query results were limited; false otherwise

Returns

The limited query results.

Applies to