Freigeben über


CborWriter Konstruktoren

Definition

Überlädt

CborWriter(CborConformanceMode, Boolean, Boolean)

Initialisiert eine neue Instanz der CborWriter-Klasse unter Verwendung der angegebenen Konfiguration.

CborWriter(CborConformanceMode, Boolean, Boolean, Int32)

CborWriter(CborConformanceMode, Boolean, Boolean)

Quelle:
CborWriter.cs
Quelle:
CborWriter.cs
Quelle:
CborWriter.cs

Initialisiert eine neue Instanz der CborWriter-Klasse unter Verwendung der angegebenen Konfiguration.

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)

Parameter

conformanceMode
CborConformanceMode

Einer der Enumerationswerte, der die Konformitätsprüfungen bestimmt, die an den codierten Daten vorgenommen werden. Standard ist der Strict-Konformitätsmodus.

convertIndefiniteLengthEncodings
Boolean

true die automatische Konvertierung von Codierungen mit unbestimmter Länge in Entsprechungen mit bestimmter Länge zu ermöglichen und die Verwendung von Schreib-APIs mit unbestimmter Länge in Konformitätsmodi zuzulassen, die dies andernfalls nicht zulassen; falseandernfalls .

allowMultipleRootLevelValues
Boolean

true, um zuzulassen, dass mehrere Werte auf Stammebene vom Writer geschrieben werden; andernfalls false.

Ausnahmen

conformanceMode ist kein definierter CborConformanceMode.

Gilt für:

CborWriter(CborConformanceMode, Boolean, Boolean, Int32)

Quelle:
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)

Parameter

conformanceMode
CborConformanceMode
convertIndefiniteLengthEncodings
Boolean
allowMultipleRootLevelValues
Boolean
initialCapacity
Int32

Gilt für: