# HiddenAnnotation Properties

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

Represents visibility metadata that hides a resource from default resource lists.

<a id="behavior"></a>

## Behavior

- Name: `Behavior`
- Modifiers: `get`
- Returns: [HiddenBehavior](/reference/api/csharp/aspire.hosting/hiddenbehavior.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/ApplicationModel/HiddenAnnotation.cs#L34)

Gets when the resource should be hidden from default resource lists.

```csharp
public HiddenBehavior Behavior { get; }
```

<a id="successfulexitcodes"></a>

## SuccessfulExitCodes

- Name: `SuccessfulExitCodes`
- Modifiers: `get; init`
- Returns: `IReadOnlyList<int>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/ApplicationModel/HiddenAnnotation.cs)

Gets the exit codes that are treated as successful completion when [HiddenAnnotation.Behavior](/reference/api/csharp/aspire.hosting/hiddenannotation/properties.md#behavior) is [HiddenBehavior.OnCompletion](/reference/api/csharp/aspire.hosting/hiddenbehavior/fields.md).

```csharp
public IReadOnlyList<int> SuccessfulExitCodes { get; init; }
```
