Language

CborWriterOptions Class

Definition

Provides the ability for the user to define custom behavior when writing CBOR data.

public ref class CborWriterOptions sealed
public sealed class CborWriterOptions
type CborWriterOptions = class
Public NotInheritable Class CborWriterOptions
Inheritance
CborWriterOptions

Constructors

Name Description
CborWriterOptions()

Initializes a new instance of the CborWriterOptions class.

Properties

Name Description
AllowMultipleRootLevelValues

Gets or sets a value that indicates whether multiple root-level CBOR data items are permitted.

ConformanceMode

Gets or sets the conformance mode used when writing CBOR data.

ConvertIndefiniteLengthEncodings

Gets or sets a value that indicates whether the writer automatically converts indefinite-length encodings into definite-length equivalents.

InitialCapacity

Gets or sets the initial capacity, in bytes, of the buffer used when writing CBOR data.

MaxDepth

Gets or sets the maximum depth allowed when writing CBOR data, with the default (-1) indicating a runtime-chosen maximum depth.

Applies to