# DeploymentStateSection Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DeploymentStateSection](/reference/api/csharp/aspire.hosting/deploymentstatesection.md)
- Kind: `Methods`
- Members: `1`

Represents a section of deployment state with version tracking for concurrency control.

## SetValue(string)

- Name: `SetValue(string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/Pipelines/DeploymentStateSection.cs#L55-L57)

Sets a single value in the section, replacing any existing data.

```csharp
public sealed class DeploymentStateSection
{
    public void SetValue(
        string value)
    {
        // ...
    }
}
```

## Parameters

- `value` (`string`)
  The value to store in the section.
