# DisplayOrderAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/DisplayOrderAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

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.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class DisplayOrderAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [DisplayOrderAnnotation(int)](/reference/api/csharp/aspire.hosting/displayorderannotation/constructors.md#constructor-int) -- 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.

## Properties

- [Order](/reference/api/csharp/aspire.hosting/displayorderannotation/properties.md#order) : `int` `get` -- Gets the display order. Higher values appear first.
