ODataRouteBuilderExtensions.OrderBy Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
OrderBy(IRouteBuilder) |
Sets the EnableOrderBy to true of DefaultQuerySettings in route builder. |
OrderBy(IRouteBuilder, QueryOptionSetting) |
Sets the EnableOrderBy of DefaultQuerySettings in route builder, depends on QueryOptionSetting. |
Sets the EnableOrderBy to true of DefaultQuerySettings in route builder.
public static Microsoft.AspNetCore.Routing.IRouteBuilder OrderBy (this Microsoft.AspNetCore.Routing.IRouteBuilder builder);
static member OrderBy : Microsoft.AspNetCore.Routing.IRouteBuilder -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function OrderBy (builder As IRouteBuilder) As IRouteBuilder
Parameters
- builder
- IRouteBuilder
Returns
Applies to
Sets the EnableOrderBy of DefaultQuerySettings in route builder, depends on QueryOptionSetting.
public static Microsoft.AspNetCore.Routing.IRouteBuilder OrderBy (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, Microsoft.AspNet.OData.Query.QueryOptionSetting setting);
static member OrderBy : Microsoft.AspNetCore.Routing.IRouteBuilder * Microsoft.AspNet.OData.Query.QueryOptionSetting -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function OrderBy (builder As IRouteBuilder, setting As QueryOptionSetting) As IRouteBuilder
Parameters
- builder
- IRouteBuilder
- setting
- QueryOptionSetting