# EndpointNameAttribute Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [EndpointNameAttribute](/reference/api/csharp/aspire.hosting/endpointnameattribute.md)
- Kind: `Constructors`
- Members: `1`

Signifies that a parameter represents an endpoint name.

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

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

## EndpointNameAttribute

- Name: `Constructor`

```csharp
public sealed class EndpointNameAttribute
{
    public EndpointNameAttribute()
    {
        // ...
    }
}
```
