# UrlDisplayPropertiesSnapshot

- Kind: `record`
- 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/CustomResourceSnapshot.cs)
- Implements: `IEquatable<UrlDisplayPropertiesSnapshot>`

A snapshot of the display properties for a url.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed record UrlDisplayPropertiesSnapshot
    : System.IEquatable<Aspire.Hosting.ApplicationModel.UrlDisplayPropertiesSnapshot>
{
    // ...
}
```

## Constructors

- [UrlDisplayPropertiesSnapshot(string, int)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/constructors.md#constructor-string-int) -- A snapshot of the display properties for a url.

## Properties

- [DisplayName](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/properties.md#displayname) : `string` `get; init` -- The display name of the url.
- [SortOrder](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/properties.md#sortorder) : `int` `get; init` -- The order of the url in UI. Higher numbers are displayed first in the UI.

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#clone) : [UrlDisplayPropertiesSnapshot](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md)
- [Deconstruct(string, int)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#deconstruct-string-int)
- [Equals(object?)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(UrlDisplayPropertiesSnapshot?)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#equals-urldisplaypropertiessnapshot) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#op-equality-urldisplaypropertiessnapshot-urldisplaypropertiessnapshot) : `bool` `static`
- [op_Inequality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#op-inequality-urldisplaypropertiessnapshot-urldisplaypropertiessnapshot) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot/methods.md#tostring) : `string` -- Returns a string that represents the current object.
