IDehydrationContext.AddBytes 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.
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
.