Share via


EndpointNameAttribute Classe

Definizione

Specifica il nome dell'endpoint in Metadata.

[System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class EndpointNameAttribute : Attribute, Microsoft.AspNetCore.Routing.IEndpointNameMetadata
[<System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type EndpointNameAttribute = class
    inherit Attribute
    interface IEndpointNameMetadata
Public NotInheritable Class EndpointNameAttribute
Inherits Attribute
Implements IEndpointNameMetadata
Ereditarietà
EndpointNameAttribute
Attributi
Implementazioni

Commenti

I nomi degli endpoint devono essere univoci all'interno di un'applicazione e possono essere usati per identificare senza ambiguità un endpoint desiderato per la generazione di URI usando LinkGenerator

Costruttori

EndpointNameAttribute(String)

Inizializza un'istanza di EndpointNameAttribute.

Proprietà

EndpointName

Ottiene il nome dell'endpoint.

Si applica a