# ResourceUrlAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceUrlAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

A URL that should be displayed for a resource.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ResourceUrlAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [ResourceUrlAnnotation](/reference/api/csharp/aspire.hosting/resourceurlannotation/constructors.md#constructor)

## Properties

- [DisplayLocation](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#displaylocation) : [UrlDisplayLocation](/reference/api/csharp/aspire.hosting/urldisplaylocation.md) `get; set` -- Locations where this URL should be shown on the dashboard. Defaults to [UrlDisplayLocation.SummaryAndDetails](/reference/api/csharp/aspire.hosting/urldisplaylocation/fields.md).
- [DisplayText](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#displaytext) : `string?` `get; set` -- The name of the URL. When rendered as a link this will be used as the linked text.
- [Endpoint](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#endpoint) : [EndpointReference?](/reference/api/csharp/aspire.hosting/endpointreference.md) `get; init` -- The endpoint associated with this URL. Can be `null` if this URL is not associated with an endpoint.
- [Url](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#url) : `string` `get; set` -- The URL. When rendered as a link this will be used as the link target.

## Fields

- [DisplayOrder](/reference/api/csharp/aspire.hosting/resourceurlannotation/fields.md#displayorder) : `int?` -- The display order the URL. Higher values mean sort higher in the list.
