Share via


TopQueryOption Class

 

This defines a $top OData query option for querying.

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

Inheritance Hierarchy

System.Object
  System.Web.OData.Query.TopQueryOption

Syntax

public class TopQueryOption
public ref class TopQueryOption 
type TopQueryOption = class end
Public Class TopQueryOption

Constructors

Name Description
System_CAPS_pubmethod TopQueryOption(String, ODataQueryContext, ODataQueryOptionParser)

Initialize a new instance of TopQueryOption based on the raw $top value and an EdmModel from ODataQueryContext.

Properties

Name Description
System_CAPS_pubproperty Context

Gets the given ODataQueryContext.

System_CAPS_pubproperty RawValue

Gets the raw $top value.

System_CAPS_pubproperty Validator

Gets or sets the Top Query Validator.

System_CAPS_pubproperty Value

Gets the value of the $top as a parsed integer.

Methods

Name Description
System_CAPS_pubmethod ApplyTo(IQueryable, ODataQuerySettings)

Apply the $top query to the given IQueryable.

System_CAPS_pubmethod ApplyTo<T>(IQueryable<T>, ODataQuerySettings)

Apply the $top query to the given IQueryable.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(ODataValidationSettings)

Validate the top query based on the given validationSettings. It throws an ODataException if validation failed.

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.

See Also

System.Web.OData.Query Namespace

Return to top