# KnownResourceStateStyles Fields

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [KnownResourceStateStyles](/reference/api/csharp/aspire.hosting/knownresourcestatestyles.md)
- Kind: `Fields`
- Members: `4`

The set of well known resource states.

## Error

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

The error state. Useful for error messages.

```csharp
public static readonly string Error
```

## Info

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

The info state. Useful for informational messages.

```csharp
public static readonly string Info
```

## Success

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

The success state

```csharp
public static readonly string Success
```

## Warn

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

The warning state. Useful for showing warnings.

```csharp
public static readonly string Warn
```
