# ResourceUrlAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceUrlAnnotation](/reference/api/csharp/aspire.hosting/resourceurlannotation.md)
- Kind: `Properties`
- Members: `4`

A URL that should be displayed for a resource.

## DisplayLocation

- Name: `DisplayLocation`
- Modifiers: `get; set`
- Returns: [UrlDisplayLocation](/reference/api/csharp/aspire.hosting/urldisplaylocation.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlAnnotation.cs)

Locations where this URL should be shown on the dashboard. Defaults to [UrlDisplayLocation.SummaryAndDetails](/reference/api/csharp/aspire.hosting/urldisplaylocation/fields.md).

```csharp
public UrlDisplayLocation DisplayLocation { get; set; }
```

## DisplayText

- Name: `DisplayText`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlAnnotation.cs)

The name of the URL. When rendered as a link this will be used as the linked text.

```csharp
public string? DisplayText { get; set; }
```

## Endpoint

- Name: `Endpoint`
- Modifiers: `nullable` `get; init`
- Returns: [EndpointReference?](/reference/api/csharp/aspire.hosting/endpointreference.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlAnnotation.cs)

The endpoint associated with this URL. Can be `null` if this URL is not associated with an endpoint.

```csharp
public EndpointReference? Endpoint { get; init; }
```

## Url

- Name: `Url`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlAnnotation.cs)

The URL. When rendered as a link this will be used as the link target.

```csharp
public string Url { get; set; }
```
