# IResource Properties

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

Represents a resource that can be hosted by an application.

## Annotations

- Name: `Annotations`
- Modifiers: `abstract` `get`
- Returns: [ResourceAnnotationCollection](/reference/api/csharp/aspire.hosting/resourceannotationcollection.md)

Gets the annotations associated with the resource.

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

## Name

- Name: `Name`
- Modifiers: `abstract` `get`
- Returns: `string`

Gets the name of the resource.

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