EndpointNameAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[<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
- Inheritance
-
EndpointNameAttribute
- Attributes
- Implements
Endpoint names must be unique within an application, and can be used to unambiguously identify a desired endpoint for URI generation using LinkGenerator
Endpoint |
Initializes an instance of the EndpointNameAttribute. |
Endpoint |
Gets the endpoint name. |
Produk | Versi |
---|---|
ASP.NET Core | 6.0, 7.0, 8.0, 9.0 |