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
- query
Type: System.Linq.IQueryable
The original IQueryable.
- querySettings
Type: System.Web.Http.OData.Query.ODataQuerySettings
The query settings to use while applying this query option.
Return Value
Type: System.Linq.IQueryable
The new IQueryable after the top query has been applied.