CborReader(ReadOnlyMemory<Byte>, CborConformanceMode, Boolean) Constructor
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.
Initializes a CborReader instance over the specified data
with the given configuration.
public CborReader (ReadOnlyMemory<byte> data, System.Formats.Cbor.CborConformanceMode conformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, bool allowMultipleRootLevelValues = false);
new System.Formats.Cbor.CborReader : ReadOnlyMemory<byte> * System.Formats.Cbor.CborConformanceMode * bool -> System.Formats.Cbor.CborReader
Public Sub New (data As ReadOnlyMemory(Of Byte), Optional conformanceMode As CborConformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, Optional allowMultipleRootLevelValues As Boolean = false)
Parameters
- data
- ReadOnlyMemory<Byte>
The CBOR-encoded data to read.
- conformanceMode
- CborConformanceMode
One of the enumeration values to specify a conformance mode guiding the checks performed on the encoded data. Defaults to Strict conformance mode.
- allowMultipleRootLevelValues
- Boolean
true
to indicate that multiple root-level values are supported by the reader; otherwise, false
.
Exceptions
conformanceMode
is not defined.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기