Share via


TopQueryOption.ApplyTo Method (IQueryable, ODataQuerySettings)

Apply the $top query to the given IQueryable.

Namespace:  System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Function ApplyTo ( _
    query As IQueryable, _
    querySettings As ODataQuerySettings _
) As IQueryable
'Usage
Dim instance As TopQueryOption 
Dim query As IQueryable 
Dim querySettings As ODataQuerySettings 
Dim returnValue As IQueryable 

returnValue = instance.ApplyTo(query, _
    querySettings)
public IQueryable ApplyTo(
    IQueryable query,
    ODataQuerySettings querySettings
)
public:
IQueryable^ ApplyTo(
    IQueryable^ query, 
    ODataQuerySettings^ querySettings
)
member ApplyTo : 
        query:IQueryable * 
        querySettings:ODataQuerySettings -> IQueryable
public function ApplyTo(
    query : IQueryable, 
    querySettings : ODataQuerySettings
) : IQueryable

Parameters

Return Value

Type: System.Linq.IQueryable
The new IQueryable after the top query has been applied.

See Also

Reference

TopQueryOption Class

ApplyTo Overload

System.Web.Http.OData.Query Namespace