다음을 통해 공유


CborReader.SkipToParent(Boolean) Method

Definition

Reads the remaining contents of the current value context, discarding results and advancing the reader to the next value in the parent context.

public void SkipToParent (bool disableConformanceModeChecks = false);
member this.SkipToParent : bool -> unit
Public Sub SkipToParent (Optional disableConformanceModeChecks As Boolean = false)

Parameters

disableConformanceModeChecks
Boolean

true to disable conformance mode validation for the skipped values, equivalent to using Lax; otherwise, false.

Exceptions

The reader is at the root context

The next value has an invalid CBOR encoding.

-or-

There was an unexpected end of CBOR encoding data.

-or-

The next value uses a CBOR encoding that is not valid under the current conformance mode.

Applies to