Udostępnij za pośrednictwem


RoutingEndpointConventionBuilderExtensions.WithGroupName<TBuilder> Metoda

Definicja

EndpointGroupNameAttribute Ustawia dla wszystkich punktów końcowych utworzonych w obiekcie docelowymIEndpointConventionBuilder, biorąc pod uwagę endpointGroupNamewartość . Element IEndpointGroupNameMetadata w punkcie końcowym służy do ustawiania nazwy grupy punktu końcowego w specyfikacji interfejsu OpenAPI.

public static TBuilder WithGroupName<TBuilder> (this TBuilder builder, string endpointGroupName) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithGroupName : 'Builder * string -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithGroupName(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, endpointGroupName As String) As TBuilder

Parametry typu

TBuilder

Parametry

builder
TBuilder

Element IEndpointConventionBuilder.

endpointGroupName
String

Nazwa grupy punktów końcowych.

Zwraca

TBuilder

Element IEndpointConventionBuilder.

Dotyczy