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.
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() |