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

适用于