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

The warning state. Useful for showing warnings.

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