Share via


EndpointDescriptionAttribute Classe

Definizione

Specifica una descrizione per l'endpoint in Metadata.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class EndpointDescriptionAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointDescriptionMetadata
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type EndpointDescriptionAttribute = class
    inherit Attribute
    interface IEndpointDescriptionMetadata
Public NotInheritable Class EndpointDescriptionAttribute
Inherits Attribute
Implements IEndpointDescriptionMetadata
Ereditarietà
EndpointDescriptionAttribute
Attributi
Implementazioni

Commenti

La specifica OpenAPI supporta un attributo di descrizione per operazioni e parametri che possono essere usati per annotare gli endpoint con descrittori multilinea dettagliati del comportamento.

Costruttori

EndpointDescriptionAttribute(String)

Inizializza un'istanza della classe EndpointDescriptionAttribute.

Proprietà

Description

Ottiene la descrizione associata all'endpoint.

Metodi

ToString()

Specifica una descrizione per l'endpoint in Metadata.

Si applica a