Επεξεργασία

Κοινή χρήση μέσω


Utf8JsonWriter Constructors

Definition

Overloads

Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions)

Initializes a new instance of the Utf8JsonWriter class using the specified IBufferWriter<T> to write the output to and customization options.

Utf8JsonWriter(Stream, JsonWriterOptions)

Initializes a new instance of the Utf8JsonWriter class using the specified stream to write the output to and customization options.

Utf8JsonWriter(IBufferWriter<Byte>, JsonWriterOptions)

Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs

Initializes a new instance of the Utf8JsonWriter class using the specified IBufferWriter<T> to write the output to and customization options.

public Utf8JsonWriter (System.Buffers.IBufferWriter<byte> bufferWriter, System.Text.Json.JsonWriterOptions options = default);
new System.Text.Json.Utf8JsonWriter : System.Buffers.IBufferWriter<byte> * System.Text.Json.JsonWriterOptions -> System.Text.Json.Utf8JsonWriter
Public Sub New (bufferWriter As IBufferWriter(Of Byte), Optional options As JsonWriterOptions = Nothing)

Parameters

bufferWriter
IBufferWriter<Byte>

The destination for writing JSON text.

options
JsonWriterOptions

Defines the customized behavior of the Utf8JsonWriter. By default, it writes minimized JSON (with no extra white space) and validates that the JSON being written is structurally valid according to the JSON RFC.

Exceptions

bufferWriter is null.

Applies to

Utf8JsonWriter(Stream, JsonWriterOptions)

Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs
Source:
Utf8JsonWriter.cs

Initializes a new instance of the Utf8JsonWriter class using the specified stream to write the output to and customization options.

public Utf8JsonWriter (System.IO.Stream utf8Json, System.Text.Json.JsonWriterOptions options = default);
new System.Text.Json.Utf8JsonWriter : System.IO.Stream * System.Text.Json.JsonWriterOptions -> System.Text.Json.Utf8JsonWriter
Public Sub New (utf8Json As Stream, Optional options As JsonWriterOptions = Nothing)

Parameters

utf8Json
Stream

The destination for writing JSON text.

options
JsonWriterOptions

Defines the customized behavior of the Utf8JsonWriter. By default, it writes minimized JSON (with no extra white space) and validates that the JSON being written is structurally valid according to the JSON RFC.

Exceptions

utf8Json is null.

Applies to