RouteGroupContext.Conventions 属性

定义

获取添加到通过 Add(Action<EndpointBuilder>)从 返回的MapGroup(IEndpointRouteBuilder, RoutePattern)上级RouteGroupBuilder实例的所有约定。 在生成从 GetGroupedEndpoints(RouteGroupContext)返回的每个 RouteEndpoint 时,应按顺序应用这些。

public System.Collections.Generic.IReadOnlyList<Action<Microsoft.AspNetCore.Builder.EndpointBuilder>> Conventions { get; init; }
member this.Conventions : System.Collections.Generic.IReadOnlyList<Action<Microsoft.AspNetCore.Builder.EndpointBuilder>> with get, set
Public Property Conventions As IReadOnlyList(Of Action(Of EndpointBuilder))

属性值

适用于