# ResourceRelationshipAnnotation Properties

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

An annotation which represents the relationship between two resources.

## Resource

- Name: `Resource`
- Modifiers: `get`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceRelationshipAnnotation.cs#L17)

The resource that the relationship is to.

```csharp
public IResource Resource { get; }
```

## Type

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

The relationship type.

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