# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/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.
