# ResourceStateSnapshot Properties

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

A snapshot of the resource state

## Style

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

The style for the state update. Use for the supported styles.

```csharp
public string? Style { get; init; }
```

## Text

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

The text for the state update. See [KnownResourceStates](/reference/api/csharp/aspire.hosting/knownresourcestates.md) for expected values.

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