共用方式為


RoutingEndpointConventionBuilderExtensions.WithOrder<TBuilder> 方法

定義

Order將 設定為 針對 所 builder 建立的所有產生器所提供的 order

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

類型參數

TBuilder

參數

builder
TBuilder

IEndpointConventionBuilder

order
Int32

指派給端點的順序。

傳回

TBuilder

IEndpointConventionBuilder

適用於