Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Limits the query results to a maximum number of results.
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.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.Int32The query result limit.
resultsLimited
Type: System.Booleantrue 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.Http.OData.Query Namespace
Return to top