# IDehydrationContext.AddBytes(string, ReadOnlySpan&lt;byte&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.idehydrationcontext/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.idehydrationcontext/methods/)

```csharp
public abstract void AddBytes(string key, ReadOnlySpan<byte> value)
```

Adds a sequence of bytes to the dehydration context, associating the sequence with the provided key.

### Parameters

- `key` (`string`): The key.
- `value` (`ReadOnlySpan<byte>`): The value.
