Share via


RouteGroupContext.Prefix 屬性

定義

取得 , RoutePattern 其應該在 呼叫 GetGroupedEndpoints(RouteGroupContext) 所傳回之所有 RouteEndpoint 實例的 前面 RoutePattern 加上 。 這會考慮巢狀群組,並提供完整的群組前置詞,而不只是提供給 最內層呼叫 MapGroup(IEndpointRouteBuilder, RoutePattern) 的前置詞。

public Microsoft.AspNetCore.Routing.Patterns.RoutePattern Prefix { get; init; }
member this.Prefix : Microsoft.AspNetCore.Routing.Patterns.RoutePattern with get, set
Public Property Prefix As RoutePattern

屬性值

適用於