# UrlSnapshot

- 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<UrlSnapshot>`

A snapshot of the URL.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Constructors

- [UrlSnapshot(string?, string, bool)](/reference/api/csharp/aspire.hosting/urlsnapshot/constructors.md#constructor-string-string-bool) -- A snapshot of the URL.

## Properties

- [DisplayProperties](/reference/api/csharp/aspire.hosting/urlsnapshot/properties.md#displayproperties) : [UrlDisplayPropertiesSnapshot](/reference/api/csharp/aspire.hosting/urldisplaypropertiessnapshot.md) `get; init` -- The UI display properties for the url.
- [IsInactive](/reference/api/csharp/aspire.hosting/urlsnapshot/properties.md#isinactive) : `bool` `get; init` -- Whether this URL is inactive or not.
- [IsInternal](/reference/api/csharp/aspire.hosting/urlsnapshot/properties.md#isinternal) : `bool` `get; init` -- Determines if this URL is internal. Internal URLs are only shown in the details grid for a resource.
- [Name](/reference/api/csharp/aspire.hosting/urlsnapshot/properties.md#name) : `string?` `get; init` -- Name of the endpoint associated with the URL.
- [Url](/reference/api/csharp/aspire.hosting/urlsnapshot/properties.md#url) : `string` `get; init` -- The full URL.

## Methods

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