共用方式為


RouteGroupContext.FinallyConventions 屬性

定義

取得新增至透過 Add(Action<EndpointBuilder>) 傳回之 MapGroup(IEndpointRouteBuilder, RoutePattern) 上階 RouteGroupBuilder 實例的所有慣例。 建置從 GetGroupedEndpoints(RouteGroupContext) 傳回的每個 RouteEndpoint 時,這些應該以 LIFO 順序套用。

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

屬性值

適用於