# ResourceEvent Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceEvent](/reference/api/csharp/aspire.hosting/resourceevent.md)
- Kind: `Properties`
- Members: `3`

Represents a change in the state of a resource.

## 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/ResourceNotificationService.cs#L991)

The resource associated with the event.

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

## ResourceId

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

The unique id of the resource.

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

## Snapshot

- Name: `Snapshot`
- Modifiers: `get`
- Returns: [CustomResourceSnapshot](/reference/api/csharp/aspire.hosting/customresourcesnapshot.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs#L1001)

The snapshot of the resource state.

```csharp
public CustomResourceSnapshot Snapshot { get; }
```
