CborReader.TrySkipToParent(Boolean) 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.
Attempts to read the remaining contents of the current value context, discarding results and advancing the reader to the next value in the parent context.
public bool TrySkipToParent(bool disableConformanceModeChecks = false);
member this.TrySkipToParent : bool -> bool
Public Function TrySkipToParent (Optional disableConformanceModeChecks As Boolean = false) As Boolean
Parameters
- disableConformanceModeChecks
- Boolean
true to disable conformance mode validation for the skipped values, equivalent to using Lax; otherwise, false.
Returns
true if the current value context was skipped; false if its contents are incomplete
in the current buffer and the reader's current data is not the final block, in which case the reader state is unchanged.
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 and the reader's current data is the final block.
-or-
The next value uses a CBOR encoding that is not valid under the current conformance mode.