CborWriter Constructors
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.
Overloads
CborWriter(CborConformanceMode, Boolean, Boolean) |
Initializes a new instance of CborWriter class using the specified configuration. |
CborWriter(CborConformanceMode, Boolean, Boolean, Int32) |
CborWriter(CborConformanceMode, Boolean, Boolean)
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
Initializes a new instance of CborWriter class using the specified configuration.
public:
CborWriter(System::Formats::Cbor::CborConformanceMode conformanceMode, bool convertIndefiniteLengthEncodings, bool allowMultipleRootLevelValues);
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, bool convertIndefiniteLengthEncodings = false, bool allowMultipleRootLevelValues = false);
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode, bool convertIndefiniteLengthEncodings, bool allowMultipleRootLevelValues);
new System.Formats.Cbor.CborWriter : System.Formats.Cbor.CborConformanceMode * bool * bool -> System.Formats.Cbor.CborWriter
Public Sub New (Optional conformanceMode As CborConformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, Optional convertIndefiniteLengthEncodings As Boolean = false, Optional allowMultipleRootLevelValues As Boolean = false)
Public Sub New (conformanceMode As CborConformanceMode, convertIndefiniteLengthEncodings As Boolean, allowMultipleRootLevelValues As Boolean)
Parameters
- conformanceMode
- CborConformanceMode
One of the enumeration values that specifies the guidance on the conformance checks performed on the encoded data. Defaults to Strict conformance mode.
- convertIndefiniteLengthEncodings
- Boolean
true
to enable automatically converting indefinite-length encodings into definite-length equivalents and allow use of indefinite-length write APIs in conformance modes that otherwise do not permit it; otherwise, false
.
- allowMultipleRootLevelValues
- Boolean
true
to allow multiple root-level values to be written by the writer; otherwise, false
.
Exceptions
conformanceMode
is not a defined CborConformanceMode.
Applies to
CborWriter(CborConformanceMode, Boolean, Boolean, Int32)
- Source:
- CborWriter.cs
- Source:
- CborWriter.cs
public CborWriter (System.Formats.Cbor.CborConformanceMode conformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, bool convertIndefiniteLengthEncodings = false, bool allowMultipleRootLevelValues = false, int initialCapacity = -1);
new System.Formats.Cbor.CborWriter : System.Formats.Cbor.CborConformanceMode * bool * bool * int -> System.Formats.Cbor.CborWriter
Public Sub New (Optional conformanceMode As CborConformanceMode = System.Formats.Cbor.CborConformanceMode.Strict, Optional convertIndefiniteLengthEncodings As Boolean = false, Optional allowMultipleRootLevelValues As Boolean = false, Optional initialCapacity As Integer = -1)
Parameters
- conformanceMode
- CborConformanceMode
- convertIndefiniteLengthEncodings
- Boolean
- allowMultipleRootLevelValues
- Boolean
- initialCapacity
- Int32
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기