# DeploymentStateSection

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Pipelines`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/DeploymentStateSection.cs)

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

## Definition

```csharp
namespace Aspire.Hosting.Pipelines;

public sealed class DeploymentStateSection
{
    // ...
}
```

## Remarks

Initializes a new instance of the [DeploymentStateSection](/reference/api/csharp/aspire.hosting/deploymentstatesection.md) class.

## Constructors

- [DeploymentStateSection(string, JsonObject?, long)](/reference/api/csharp/aspire.hosting/deploymentstatesection/constructors.md#constructor-string-jsonobject-long) -- Represents a section of deployment state with version tracking for concurrency control.

## Properties

- [Data](/reference/api/csharp/aspire.hosting/deploymentstatesection/properties.md#data) : `JsonObject` `get` -- Gets the data stored in this section.
- [SectionName](/reference/api/csharp/aspire.hosting/deploymentstatesection/properties.md#sectionname) : `string` `get` -- Gets the name of the state section.
- [Version](/reference/api/csharp/aspire.hosting/deploymentstatesection/properties.md#version) : `long` `get; set` -- Gets or sets the current version of this section.

## Methods

- [SetValue(string)](/reference/api/csharp/aspire.hosting/deploymentstatesection/methods.md#setvalue-string) -- Sets a single value in the section, replacing any existing data.
