Skip to content

IRehydrationContext.TryGetBytes(string, ReadOnlySequence<byte>)

TryGetBytes(string, ReadOnlySequence<byte>)

abstract
public abstract bool TryGetBytes(string key, out ReadOnlySequence<byte> value)
Tries to get a sequence of bytes from the rehydration context, associated with the provided key.

Parameters

keystring
The key.
valueReadOnlySequence<byte>
The value, if present.

Returns

true if the key exists in the context, otherwise false.