EndpointNameAttribute Klasa

Definicja

Określa nazwę punktu końcowego w elemecie 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
Dziedziczenie
EndpointNameAttribute
Atrybuty
Implementuje

Uwagi

Nazwy punktów końcowych muszą być unikatowe w aplikacji i mogą służyć do jednoznacznego identyfikowania żądanego punktu końcowego na potrzeby generowania identyfikatora URI przy użyciu polecenia LinkGenerator

Konstruktory

EndpointNameAttribute(String)

Inicjuje wystąpienie elementu EndpointNameAttribute.

Właściwości

EndpointName

Pobiera nazwę punktu końcowego.

Dotyczy