# HealthReportSnapshot Methods

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

A report produced by a health check about a resource.

## <Clone>$

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

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

## Deconstruct(string, HealthStatus??, string?, string?)

- Name: `Deconstruct(string, HealthStatus??, string?, string?)`

```csharp
public record HealthReportSnapshot
{
    public void Deconstruct(
        out string Name,
        out HealthStatus?? Status,
        out string? Description,
        out string? ExceptionText)
    {
        // ...
    }
}
```

## Parameters

- `Name` (`string`)
- `Status` (`HealthStatus??`)
- `Description` (`string?`)
- `ExceptionText` (`string?`)

## Equals(object?)

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

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

```csharp
public record HealthReportSnapshot
{
    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(HealthReportSnapshot?)

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

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

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

## Parameters

- `other` ([HealthReportSnapshot?](/reference/api/csharp/aspire.hosting/healthreportsnapshot.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 HealthReportSnapshot
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

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

## op_Equality(HealthReportSnapshot?, HealthReportSnapshot?)

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

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

## Parameters

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

## op_Inequality(HealthReportSnapshot?, HealthReportSnapshot?)

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

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

## Parameters

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

## ToString

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

Returns a string that represents the current object.

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

## Returns

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