# DisplayOrderAnnotation Constructors

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

The default display order of a resource in lists of resources. Higher values appear first, consistent with [ResourceUrlAnnotation.DisplayOrder](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#displayorder). Resources without a display order are treated as having an order of 0.

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

## DisplayOrderAnnotation(int)

- Name: `Constructor(int)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/DisplayOrderAnnotation.cs#L14-L17)

The default display order of a resource in lists of resources. Higher values appear first, consistent with [ResourceUrlAnnotation.DisplayOrder](/reference/api/csharp/aspire.hosting/resourceurlannotation/properties.md#displayorder). Resources without a display order are treated as having an order of 0.

```csharp
public sealed class DisplayOrderAnnotation
{
    public DisplayOrderAnnotation(
        int order)
    {
        // ...
    }
}
```

## Parameters

- `order` (`int`)
  The display order.
