Share via


TopQueryOption Constructor

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

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

Syntax

'Declaration
Public Sub New ( _
    rawValue As String, _
    context As ODataQueryContext _
)
'Usage
Dim rawValue As String 
Dim context As ODataQueryContext 

Dim instance As New TopQueryOption(rawValue, _
    context)
public TopQueryOption(
    string rawValue,
    ODataQueryContext context
)
public:
TopQueryOption(
    String^ rawValue, 
    ODataQueryContext^ context
)
new : 
        rawValue:string * 
        context:ODataQueryContext -> TopQueryOption
public function TopQueryOption(
    rawValue : String, 
    context : ODataQueryContext
)

Parameters

  • rawValue
    Type: System.String
    The raw value for $top query. It can be null or empty.

See Also

Reference

TopQueryOption Class

System.Web.Http.OData.Query Namespace