Partager via


EndpointNameAttribute Class

Definition

Signifies that a parameter represents an endpoint name.

Decorate String parameters representing endpoint names with this attribute, e.g.:

public static IResourceBuilder<TResource> WithCustomEndpoint<TResource>(this IResourceBuilder<TResource> builder, [EndpointName] string name)

[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false)]
public sealed class EndpointNameAttribute : Attribute, Aspire.Hosting.ApplicationModel.IModelNameParameter
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false)>]
type EndpointNameAttribute = class
    inherit Attribute
    interface IModelNameParameter
Public NotInheritable Class EndpointNameAttribute
Inherits Attribute
Implements IModelNameParameter
Inheritance
EndpointNameAttribute
Attributes
Implements

Remarks

This API supports analyzers in Aspire.Hosting.Analyzers.

Constructors

EndpointNameAttribute()

Applies to