Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initialize a new instance of TopQueryOption based on the raw $top value and an EdmModel from ODataQueryContext.
Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public TopQueryOption(
    string rawValue,
    ODataQueryContext context,
    ODataQueryOptionParser queryOptionParser
)
public:
TopQueryOption(
    String^ rawValue,
    ODataQueryContext^ context,
    ODataQueryOptionParser^ queryOptionParser
)
new : 
        rawValue:string *
        context:ODataQueryContext *
        queryOptionParser:ODataQueryOptionParser -> TopQueryOption
Public Sub New (
    rawValue As String,
    context As ODataQueryContext,
    queryOptionParser As ODataQueryOptionParser
)
Parameters
- rawValue 
 Type: System.String- The raw value for $top query. It can be null or empty. 
- context 
 Type: System.Web.OData.ODataQueryContext- The ODataQueryContext which contains the IEdmModel and some type information 
- queryOptionParser 
 Type: Microsoft.OData.Core.UriParser.ODataQueryOptionParser- The ODataQueryOptionParser which is used to parse the query option. 
See Also
TopQueryOption Class
System.Web.OData.Query Namespace
Return to top