Table of Contents

YamlFormatterOptions Constructor

Definition

YamlFormatterOptions()

Initializes a new instance of the YamlFormatterOptions class.

public YamlFormatterOptions()

Remarks

The following table shows the initial property values for an instance of YamlFormatterOptions.

PropertyInitial Value
Settingsnew YamlSerializerOptions();
SensitivityDetailsNone
SupportedMediaTypes
new List<MediaTypeHeaderValue>()
{
    DefaultMediaType,
    new("text/plain"),
    new("application/yaml"),
    new("text/yaml"),
    new("*/*")
};