NrbfDecoder.DecodeClassRecord(Stream, PayloadOptions, Boolean) Method

Definition

Decodes the provided NRBF payload that is expected to contain an instance of any class (or struct) that is not an Array or a primitive type.

public static System.Formats.Nrbf.ClassRecord DecodeClassRecord (System.IO.Stream payload, System.Formats.Nrbf.PayloadOptions? options = default, bool leaveOpen = false);
static member DecodeClassRecord : System.IO.Stream * System.Formats.Nrbf.PayloadOptions * bool -> System.Formats.Nrbf.ClassRecord
Public Shared Function DecodeClassRecord (payload As Stream, Optional options As PayloadOptions = Nothing, Optional leaveOpen As Boolean = false) As ClassRecord

Parameters

payload
Stream

The NRBF payload.

options
PayloadOptions

Options to control behavior during parsing.

leaveOpen
Boolean

true to leave payload payload open after the reading is finished; otherwise, false.

Returns

A ClassRecord that represents the root object.

Applies to