Freigeben über


ODataQueryOptions.LimitResults<T> Method (IQueryable<T>, Int32, Boolean)

 

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

  • 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.Http.OData.Query Namespace

Return to top