Utf8JsonWriter.Reset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기