EndpointNameAttribute Класс

Определение

Указывает имя конечной точки в 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
Наследование
EndpointNameAttribute
Атрибуты
Реализации

Комментарии

Имена конечных точек должны быть уникальными в пределах приложения и могут использоваться для однозначного определения нужной конечной точки для создания URI с помощью LinkGenerator

Конструкторы

EndpointNameAttribute(String)

Инициализирует экземпляр endpointNameAttribute.

Свойства

EndpointName

Возвращает имя конечной точки.

Применяется к