# HashRingBasedPartitionedStreamQueueMapper.QueueToPartition(QueueId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedpartitionedstreamqueuemapper/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.hashringbasedpartitionedstreamqueuemapper/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/HashRingBasedStreamQueueMapper.cs#L94)

```csharp
public string QueueToPartition(QueueId queue)
```

Gets the partition by QueueId

### Parameters

- `queue` (`QueueId`)
