Edytuj

Udostępnij za pośrednictwem


IRehydrationContext.TryGetBytes(String, ReadOnlySequence<Byte>) Method

Definition

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.

Applies to