Utf8YamlWriterOptions Struct

Options of Utf8YamlWriter.

public struct Utf8YamlWriterOptions

Properties

NameDescription
IndentSizeGets or sets the number of spaces of each indentation level of the block collections. 0 uses the default, 2.
MaxDepthGets or sets the maximum nesting depth of the collections. 0 uses the default, 64.

Gets or sets the number of spaces of each indentation level of the block collections. 0 uses the default, 2.

public int IndentSize { readonly get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is negative or greater than 16.

Gets or sets the maximum nesting depth of the collections. 0 uses the default, 64.

public int MaxDepth { readonly get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is negative.