# UrlDisplayPropertiesSnapshot Methods

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

A snapshot of the display properties for a url.

## <Clone>$

- Name: `<Clone>$`
- Returns: [UrlDisplayPropertiesSnapshot](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md)

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public UrlDisplayPropertiesSnapshot <Clone>$()
    {
        // ...
    }
}
```

## Deconstruct(string, int)

- Name: `Deconstruct(string, int)`

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public void Deconstruct(
        out string DisplayName,
        out int SortOrder)
    {
        // ...
    }
}
```

## Parameters

- `DisplayName` (`string`)
- `SortOrder` (`int`)

## Equals(object?)

- Name: `Equals(object?)`
- Modifiers: `override`
- Returns: `bool`

Determines whether the specified object is equal to the current object.

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public override bool Equals(
        object? obj)
    {
        // ...
    }
}
```

## Parameters

- `obj` (`object?`)
  The object to compare with the current object.

## Returns

`bool` -- `true` if the specified object is equal to the current object; otherwise, `false`.

## Equals(UrlDisplayPropertiesSnapshot?)

- Name: `Equals(UrlDisplayPropertiesSnapshot?)`
- Returns: `bool`

Indicates whether the current object is equal to another object of the same type.

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public bool Equals(
        UrlDisplayPropertiesSnapshot? other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([UrlDisplayPropertiesSnapshot?](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md))
  An object to compare with this object.

## Returns

`bool` -- `true` if the current object is equal to the `other` parameter; otherwise, `false`.

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Serves as the default hash function.

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A hash code for the current object.

## op_Equality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)

- Name: `op_Equality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public static bool operator ==(
        UrlDisplayPropertiesSnapshot? left,
        UrlDisplayPropertiesSnapshot? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([UrlDisplayPropertiesSnapshot?](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md))
- `right` ([UrlDisplayPropertiesSnapshot?](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md))

## op_Inequality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)

- Name: `op_Inequality(UrlDisplayPropertiesSnapshot?, UrlDisplayPropertiesSnapshot?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public static bool operator !=(
        UrlDisplayPropertiesSnapshot? left,
        UrlDisplayPropertiesSnapshot? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([UrlDisplayPropertiesSnapshot?](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md))
- `right` ([UrlDisplayPropertiesSnapshot?](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns a string that represents the current object.

```csharp
public record UrlDisplayPropertiesSnapshot
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- A string that represents the current object.
