EndpointNameAttribute Class

Definition

Specifies the endpoint name in Metadata.

C#
[System.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class EndpointNameAttribute : Attribute, Microsoft.AspNetCore.Routing.IEndpointNameMetadata
Inheritance
EndpointNameAttribute
Attributes
Implements

Remarks

Endpoint names must be unique within an application, and can be used to unambiguously identify a desired endpoint for URI generation using LinkGenerator

Constructors

EndpointNameAttribute(String)

Initializes an instance of the EndpointNameAttribute.

Properties

EndpointName

Gets the endpoint name.

Applies to

Produk Versi
ASP.NET Core 6.0, 7.0, 8.0, 9.0