# RelationshipSnapshot Constructors

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

A snapshot of a relationship.

## RelationshipSnapshot(string, string)

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

A snapshot of a relationship.

```csharp
public record RelationshipSnapshot
{
    public RelationshipSnapshot(
        string ResourceName,
        string Type)
    {
        // ...
    }
}
```

## Parameters

- `ResourceName` (`string`)
  The name of the resource the relationship is to.
- `Type` (`string`)
  The relationship type.
