Compartilhar via


OpenApiJsonWriter Constructors

Definition

Overloads

OpenApiJsonWriter(TextWriter)

Initializes a new instance of the OpenApiJsonWriter class.

OpenApiJsonWriter(TextWriter, OpenApiJsonWriterSettings)

Initializes a new instance of the OpenApiJsonWriter class.

OpenApiJsonWriter(TextWriter, OpenApiWriterSettings, Boolean)

Initializes a new instance of the OpenApiJsonWriter class.

OpenApiJsonWriter(TextWriter)

Initializes a new instance of the OpenApiJsonWriter class.

public OpenApiJsonWriter (System.IO.TextWriter textWriter);
new Microsoft.OpenApi.Writers.OpenApiJsonWriter : System.IO.TextWriter -> Microsoft.OpenApi.Writers.OpenApiJsonWriter
Public Sub New (textWriter As TextWriter)

Parameters

textWriter
TextWriter

The text writer.

Applies to

OpenApiJsonWriter(TextWriter, OpenApiJsonWriterSettings)

Initializes a new instance of the OpenApiJsonWriter class.

public OpenApiJsonWriter (System.IO.TextWriter textWriter, Microsoft.OpenApi.Writers.OpenApiJsonWriterSettings settings);
new Microsoft.OpenApi.Writers.OpenApiJsonWriter : System.IO.TextWriter * Microsoft.OpenApi.Writers.OpenApiJsonWriterSettings -> Microsoft.OpenApi.Writers.OpenApiJsonWriter
Public Sub New (textWriter As TextWriter, settings As OpenApiJsonWriterSettings)

Parameters

textWriter
TextWriter

The text writer.

settings
OpenApiJsonWriterSettings

Settings for controlling how the OpenAPI document will be written out.

Applies to

OpenApiJsonWriter(TextWriter, OpenApiWriterSettings, Boolean)

Initializes a new instance of the OpenApiJsonWriter class.

public OpenApiJsonWriter (System.IO.TextWriter textWriter, Microsoft.OpenApi.Writers.OpenApiWriterSettings settings, bool terseOutput = false);
new Microsoft.OpenApi.Writers.OpenApiJsonWriter : System.IO.TextWriter * Microsoft.OpenApi.Writers.OpenApiWriterSettings * bool -> Microsoft.OpenApi.Writers.OpenApiJsonWriter
Public Sub New (textWriter As TextWriter, settings As OpenApiWriterSettings, Optional terseOutput As Boolean = false)

Parameters

textWriter
TextWriter

The text writer.

settings
OpenApiWriterSettings

Settings for controlling how the OpenAPI document will be written out.

terseOutput
Boolean

Setting for allowing the JSON emitted to be in terse format.

Applies to