ODataQueryOptions.LimitResults Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.