Limits the query results to a maximum number of results.
Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public static IQueryable<T> LimitResults<T>(
    IQueryable<T> queryable,
    int limit,
    out bool resultsLimited
)
public:
generic<typename T>
static IQueryable<T>^ LimitResults(
    IQueryable<T>^ queryable,
    int limit,
    [OutAttribute] bool% resultsLimited
)
static member LimitResults<'T> : 
        queryable:IQueryable<'T> *
        limit:int *
        resultsLimited:bool byref -> IQueryable<'T>
Public Shared Function LimitResults(Of T) (
    queryable As IQueryable(Of T),
    limit As Integer,
    <OutAttribute> ByRef resultsLimited As Boolean
) As IQueryable(Of T)
Parameters
- queryable 
 Type: System.Linq.IQueryable<T>- The queryable to limit. 
- limit 
 Type: System.Int32- The query result limit. 
- resultsLimited 
 Type: System.Boolean- true if the query results were limited; false otherwise 
Return Value
Type: System.Linq.IQueryable<T>
The limited query results.
Type Parameters
- T
 The entity CLR type
See Also
ODataQueryOptions Class
System.Web.OData.Query Namespace
Return to top