Share via


RoutingEndpointConventionBuilderExtensions.WithOrder<TBuilder> Method

Definition

Sets the Order to the provided order for all builders created by builder.

public static TBuilder WithOrder<TBuilder> (this TBuilder builder, int order) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithOrder : 'Builder * int -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithOrder(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, order As Integer) As TBuilder

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

order
Int32

The order assigned to the endpoint.

Returns

TBuilder

The IEndpointConventionBuilder.

Applies to