# CachedMessageBlock.GetSequenceToken(int, ICacheDataAdapter)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/PooledCache/CachedMessageBlock.cs#L139-L143)

```csharp
public StreamSequenceToken GetSequenceToken(int index, ICacheDataAdapter dataAdapter)
```

Gets the sequence token of the cached message a the provided index

### Parameters

- `index` (`int`): The index of the message to access.
- `dataAdapter` (`ICacheDataAdapter`): The data adapter.

### Returns

The sequence token.
