# PersistentStateAttribute

Package: [Microsoft.Orleans.Runtime](/orleans/docs/api/csharp/microsoft.orleans.runtime/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Runtime) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Facet/Persistent/PersistentStateAttribute.cs#L13)

```csharp
public class PersistentStateAttribute : Attribute, IFacetMetadata, IPersistentStateConfiguration
```

Specifies options for the `Orleans.Runtime.IPersistentState-1` constructor argument which it is applied to.

## See also

- `System.Attribute`
- [IFacetMetadata](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.ifacetmetadata/)
- [IPersistentStateConfiguration](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.ipersistentstateconfiguration/)

## Constructors

- [PersistentStateAttribute(string, string)](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.persistentstateattribute/constructors/constructor-string-string-4fa2d185/)

## Properties

- [StateName](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.persistentstateattribute/properties/statename-667be04d/)
- [StorageName](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.persistentstateattribute/properties/storagename-33cb410d/)
