共用方式為


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))

屬性值

適用於