Edytuj

Udostępnij za pośrednictwem


IDehydrationContext.AddBytes Method

Definition

Overloads

AddBytes(String, ReadOnlySpan<Byte>)

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

AddBytes<T>(String, Action<T,IBufferWriter<Byte>>, T)

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

AddBytes(String, ReadOnlySpan<Byte>)

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

public void AddBytes (string key, ReadOnlySpan<byte> value);
abstract member AddBytes : string * ReadOnlySpan<byte> -> unit
Public Sub AddBytes (key As String, value As ReadOnlySpan(Of Byte))

Parameters

key
String

The key.

value
ReadOnlySpan<Byte>

The value.

Applies to

AddBytes<T>(String, Action<T,IBufferWriter<Byte>>, T)

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

public void AddBytes<T> (string key, Action<T,System.Buffers.IBufferWriter<byte>> valueWriter, T value);
abstract member AddBytes : string * Action<'T, System.Buffers.IBufferWriter<byte>> * 'T -> unit
Public Sub AddBytes(Of T) (key As String, valueWriter As Action(Of T, IBufferWriter(Of Byte)), value As T)

Type Parameters

T

Parameters

key
String

The key.

valueWriter
Action<T,IBufferWriter<Byte>>

A delegate used to write the provided value to the context.

value
T

The value to provide to valueWriter.

Applies to