# UrlDisplayPropertiesSnapshot Constructors

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

A snapshot of the display properties for a url.

## UrlDisplayPropertiesSnapshot(string, int)

- Name: `Constructor(string, int)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs#L231)

A snapshot of the display properties for a url.

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public UrlDisplayPropertiesSnapshot(
        string DisplayName = "",
        int SortOrder = 0)
    {
        // ...
    }
}
```

## Parameters

- `DisplayName` (`string`) `optional`
  The display name of the url.
- `SortOrder` (`int`) `optional`
  The order of the url in UI. Higher numbers are displayed first in the UI.
