# RelationshipSnapshot Properties

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

A snapshot of a relationship.

## ResourceName

- Name: `ResourceName`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The name of the resource the relationship is to.

```csharp
public string ResourceName { get; init; }
```

## Type

- Name: `Type`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The relationship type.

```csharp
public string Type { get; init; }
```
