# DockerfileStage Properties

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

Represents a stage within a multi-stage Dockerfile.

## StageName

- Name: `StageName`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/Docker/DockerfileStage.cs#L33)

Gets the name of the stage.

```csharp
public string? StageName { get; }
```

## Statements

- Name: `Statements`
- Modifiers: `get`
- Returns: [IList<DockerfileStatement>](/reference/api/csharp/aspire.hosting/dockerfilestatement.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/Docker/DockerfileStage.cs#L38)

Gets the statements for this stage.

```csharp
public IList<DockerfileStatement> Statements { get; }
```
