Del via


HeaderSerializer.Serialize(Header, Byte[], Int32) Method

Definition

Serializes the passed in header into the passed in byte array.

public static int Serialize (Microsoft.Bot.Streaming.Payloads.Header header, byte[] buffer, int offset);
static member Serialize : Microsoft.Bot.Streaming.Payloads.Header * byte[] * int -> int
Public Shared Function Serialize (header As Header, buffer As Byte(), offset As Integer) As Integer

Parameters

header
Header

The Header to serialize.

buffer
Byte[]

The byte array to store the serialized header in.

offset
Int32

Deprecated offset used to begin writing to the buffer at a location other than 0.

Returns

An int representing the maximum supported header length.

Applies to