# CachedMessageBlock.Add(CachedMessage)

[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#L105-L112)

```csharp
public void Add(CachedMessage message)
```

Add a message from the queue to the block. Converts the queue message to a cached message and stores it at the end of the block.

### Parameters

- `message` (`CachedMessage`): The message to add to this block.
