# HiddenAnnotation Constructors

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

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

<a id="constructor"></a>
<a id="constructor-hiddenbehavior"></a>

## HiddenAnnotation(HiddenBehavior)

- Name: `Constructor(HiddenBehavior)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/ApplicationModel/HiddenAnnotation.cs#L29-L39)

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

```csharp
public sealed class HiddenAnnotation
{
    public HiddenAnnotation(
        HiddenBehavior behavior)
    {
        // ...
    }
}
```

## Parameters

- `behavior` ([HiddenBehavior](/reference/api/csharp/aspire.hosting/hiddenbehavior.md))
  Specifies when the resource should be hidden.

## Remarks

Hidden resources can still be accessed directly by name or included explicitly by tooling that supports showing hidden resources.
