Utf8JsonWriter.Reset Método

Definição

Sobrecargas

Reset(Stream)

Redefine o estado interno dessa instância para que ela possa ser reutilizada com uma nova instância de Stream.Resets the internal state of this instance so that it can be reused with a new instance of Stream.

Reset()

Redefine o estado interno dessa instância para que ela possa ser reutilizada.Resets the internal state of this instance so that it can be reused.

Reset(IBufferWriter<Byte>)

Redefine o estado interno dessa instância para que ela possa ser reutilizada com uma nova instância de IBufferWriter<T>.Resets the internal state of this instance so that it can be reused with a new instance of IBufferWriter<T>.

Reset(Stream)

Redefine o estado interno dessa instância para que ela possa ser reutilizada com uma nova instância de Stream.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)

Parâmetros

utf8Json
Stream

O destino para gravar texto JSON.The destination for writing JSON text.

Exceções

utf8Json é null.utf8Json is null.

A instância foi descartada.This instance has been disposed.

Comentários

O Utf8JsonWriter continuará a usar as opções de gravador originais, mas agora grava no utf8Json como o novo destino.The Utf8JsonWriter will continue to use the original writer options but now writes to utf8Json as the new destination.

Aplica-se a

Reset()

Redefine o estado interno dessa instância para que ela possa ser reutilizada.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 ()

Exceções

A instância foi descartada.This instance has been disposed.

Comentários

O Utf8JsonWriter continuará a usar as opções do gravador original e a saída original ( IBufferWriter<T> ou Stream ) como o destino.The Utf8JsonWriter will continue to use the original writer options and the original output (either IBufferWriter<T> or Stream) as the destination.

Aplica-se a

Reset(IBufferWriter<Byte>)

Redefine o estado interno dessa instância para que ela possa ser reutilizada com uma nova instância de IBufferWriter<T>.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))

Parâmetros

bufferWriter
IBufferWriter<Byte>

O destino para gravar texto JSON.The destination for writing JSON text.

Exceções

bufferWriter é null.bufferWriter is null.

A instância foi descartada.This instance has been disposed.

Comentários

O Utf8JsonWriter continuará a usar as opções de gravador originais, mas agora grava no bufferWriter como o novo destino.The Utf8JsonWriter will continue to use the original writer options but now writes to bufferWriter as the new destination.

Aplica-se a