TopQueryOption Class
This defines a $top OData query option for querying.
Inheritance Hierarchy
System.Object
System.Web.Http.OData.Query.TopQueryOption
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class TopQueryOption
'Usage
Dim instance As TopQueryOption
public class TopQueryOption
public ref class TopQueryOption
type TopQueryOption = class end
public class TopQueryOption
The TopQueryOption type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TopQueryOption | Initialize a new instance of TopQueryOption based on the raw $top value and an EdmModel from ODataQueryContext . |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the given ODataQueryContext . | |
RawValue | Gets the raw $top value. | |
Validator | Gets or sets the Top Query Validator. | |
Value | Gets the value of the $top as a parsed integer. |
Top
Methods
Name | Description | |
---|---|---|
ApplyTo(IQueryable, ODataQuerySettings) | Apply the $top query to the given IQueryable. | |
ApplyTo<T>(IQueryable<T>, ODataQuerySettings) | Apply the $top query to the given IQueryable. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
Validate | Validate the top query based on the given validationSettings . It throws an ODataException if validation failed. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.