IRehydrationContext.TryGetBytes(String, ReadOnlySequence<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get a sequence of bytes from the rehydration context, associated with the provided key.
public bool TryGetBytes (string key, out System.Buffers.ReadOnlySequence<byte> value);
abstract member TryGetBytes : string * ReadOnlySequence -> bool
Public Function TryGetBytes (key As String, ByRef value As ReadOnlySequence(Of Byte)) As Boolean
Parameters
- key
- String
The key.
- value
- ReadOnlySequence<Byte>
The value, if present.
Returns
true
if the key exists in the context, otherwise false
.