# StreamDeliveryFailureEntity.SetPartitionKey(string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.providers.streams.persistentstreams.streamdeliveryfailureentity/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.azurestorage/orleans.providers.streams.persistentstreams.streamdeliveryfailureentity/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.AzureStorage/Providers/Streams/PersistentStreams/StreamDeliveryFailureEntity.cs#L50-L51)

```csharp
public virtual void SetPartitionKey(string deploymentId)
```

Sets the partition key before persist call.

### Parameters

- `deploymentId` (`string`)
