# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/Resource.cs#L17)

Gets the name of the resource.

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