# CosmosGrainStorageOptions

Package: [Microsoft.Orleans.Persistence.Cosmos](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Persistence.Cosmos) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.Cosmos/CosmosStorageOptions.cs#L8)

```csharp
public class CosmosGrainStorageOptions : CosmosOptions
```

Options for Azure Cosmos DB grain persistence.

## Constructors

- [CosmosGrainStorageOptions](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/constructors/constructor-09203e39/)

## Properties

- [DeleteStateOnClear](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/properties/deletestateonclear-9f3e4016/)
- [InitStage](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/properties/initstage-2c72c5c5/)
- [PartitionKeyPath](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/properties/partitionkeypath-3d2e572d/)
- [StateFieldsToIndex](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/properties/statefieldstoindex-b086a654/)

## Fields

- [DEFAULT_INIT_STAGE](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosgrainstorageoptions/fields/default-init-stage-d1cd3a0f/)
