TopQueryOption.ApplyTo 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
ApplyTo(IQueryable, ODataQuerySettings) |
Apply the $top query to the given IQueryable. |
ApplyTo<T>(IQueryable<T>, ODataQuerySettings) |
Apply the $top query to the given IQueryable. |
ApplyTo(IQueryable, ODataQuerySettings)
Apply the $top query to the given IQueryable.
public System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
member this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IQueryable
Public Function ApplyTo (query As IQueryable, querySettings As ODataQuerySettings) As IQueryable
Parameters
- query
- IQueryable
The original IQueryable.
- querySettings
- ODataQuerySettings
The query settings to use while applying this query option.
Returns
The new IQueryable after the top query has been applied to.
Applies to
ApplyTo<T>(IQueryable<T>, ODataQuerySettings)
Apply the $top query to the given IQueryable.
public System.Linq.IOrderedQueryable<T> ApplyTo<T> (System.Linq.IQueryable<T> query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
member this.ApplyTo : System.Linq.IQueryable<'T> * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IOrderedQueryable<'T>
Public Function ApplyTo(Of T) (query As IQueryable(Of T), querySettings As ODataQuerySettings) As IOrderedQueryable(Of T)
Type Parameters
- T
Parameters
- query
- IQueryable<T>
The original IQueryable.
- querySettings
- ODataQuerySettings
The query settings to use while applying this query option.
Returns
The new IQueryable after the top query has been applied to.