# DistributedApplicationResourceEventSubscription Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DistributedApplicationResourceEventSubscription](/reference/api/csharp/aspire.hosting/distributedapplicationresourceeventsubscription.md)
- Kind: `Properties`
- Members: `1`

Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.

## Resource

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

Resource associated with this subscription.

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