EndpointNameAttribute Class
Definition
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.
[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
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. |