# Resource Properties

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

Represents an abstract resource that can be used by an application, that implements [IResource](/reference/api/csharp/aspire.hosting/iresource.md).

## Annotations

- Name: `Annotations`
- Modifiers: `virtual` `get`
- Returns: [ResourceAnnotationCollection](/reference/api/csharp/aspire.hosting/resourceannotationcollection.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/Resource.cs#L22)

Gets the annotations associated with the resource.

```csharp
public virtual ResourceAnnotationCollection Annotations { get; }
```

## Name

- Name: `Name`
- Modifiers: `virtual` `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/Resource.cs#L17)

Gets the name of the resource.

```csharp
public virtual string Name { get; }
```
