Muokkaa

Jaa


Utf8JsonWriter.Reset Method

Definition

Overloads

Reset(Stream)

Resets the internal state of this instance so that it can be reused with a new instance of Stream.

Reset()

Resets the internal state of this instance so that it can be reused.

Reset(IBufferWriter<Byte>)

Resets the internal state of this instance so that it can be reused with a new instance of IBufferWriter<T>.

Reset(Stream)

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

Resets the internal state of this instance so that it can be reused with a new instance of Stream.

public:
 void Reset(System::IO::Stream ^ utf8Json);
public void Reset (System.IO.Stream utf8Json);
member this.Reset : System.IO.Stream -> unit
Public Sub Reset (utf8Json As Stream)

Parameters

utf8Json
Stream

The destination for writing JSON text.

Exceptions

utf8Json is null.

This instance has been disposed.

Remarks

The Utf8JsonWriter will continue to use the original writer options but now writes to utf8Json as the new destination.

Applies to

Reset()

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

Resets the internal state of this instance so that it can be reused.

public:
 void Reset();
public void Reset ();
member this.Reset : unit -> unit
Public Sub Reset ()

Exceptions

This instance has been disposed.

Remarks

The Utf8JsonWriter will continue to use the original writer options and the original output (either IBufferWriter<T> or Stream) as the destination.

Applies to

Reset(IBufferWriter<Byte>)

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

Resets the internal state of this instance so that it can be reused with a new instance of IBufferWriter<T>.

public:
 void Reset(System::Buffers::IBufferWriter<System::Byte> ^ bufferWriter);
public void Reset (System.Buffers.IBufferWriter<byte> bufferWriter);
member this.Reset : System.Buffers.IBufferWriter<byte> -> unit
Public Sub Reset (bufferWriter As IBufferWriter(Of Byte))

Parameters

bufferWriter
IBufferWriter<Byte>

The destination for writing JSON text.

Exceptions

bufferWriter is null.

This instance has been disposed.

Remarks

The Utf8JsonWriter will continue to use the original writer options but now writes to bufferWriter as the new destination.

Applies to