JsonWriterOptions.NewLine Property

Definition

Gets or sets the new line string to use when Indented is true.

The default is the value of NewLine.

public string NewLine { get; set; }

Property Value

Exceptions

Thrown when the new line string is null.

Thrown when the new line string is not \n or \r\n.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)