Condividi tramite


OpenApiRouteHandlerBuilderExtensions.WithSummary<TBuilder> Metodo

Definizione

Aggiunge IEndpointSummaryMetadata a Metadata per tutti gli endpoint generati da builder.

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

Parametri di tipo

TBuilder

Parametri

builder
TBuilder

Oggetto IEndpointConventionBuilder.

summary
String

Stringa che rappresenta una breve descrizione dell'endpoint.

Restituisce

TBuilder

Oggetto RouteHandlerBuilder che può essere usato per personalizzare ulteriormente l'endpoint.

Si applica a