# TransactionalStateAttribute.TransactionalStateAttribute(string, string?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.abstractions.transactionalstateattribute/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.abstractions.transactionalstateattribute/constructors/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Transactions/Abstractions/TransactionalStateAttribute.cs#L11-L15)

```csharp
public TransactionalStateAttribute(string stateName, string? storageName = null)
```

### Parameters

- `stateName` (`string`)
- `storageName` (`string?`)
