Megosztás a következőn keresztül:


EndpointNameAttribute Class

Definition

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.

Applies to