# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs#L1402)

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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs#L1407)

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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ResourceNotificationService.cs#L1412)

The snapshot of the resource state.

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