YamlWriterOptions Struct
Definition
Provides options that configure how Utf8YamlWriter emits YAML.
public struct YamlWriterOptions
- Inherited Members
- Extension Methods
Properties
IndentSize
Gets or sets the number of spaces used for each level of block indentation.
public int IndentSize { readonly get; set; }
Property Value
- int
The indentation width. A value of zero or less selects the default of two.
MaxDepth
Gets or sets the maximum container nesting depth permitted while writing.
public int MaxDepth { readonly get; set; }
Property Value
- int
The maximum depth. A value of zero or less selects the default of 64.
NewLine
Gets or sets the line-break sequence written at the end of each line.
public string? NewLine { readonly get; set; }
Property Value
- string
The newline string; the default is a single line feed (
\n).
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |