Utf8JsonWriter.Reset 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Reset(Stream, JsonWriterOptions) | |
| Reset(IBufferWriter<Byte>, JsonWriterOptions) | |
| Reset() |
重置此实例的内部状态,以便可以重复使用它。 |
| Reset(IBufferWriter<Byte>) |
重置此实例的内部状态,以便它可以与新实例 IBufferWriter<T>一起重复使用。 |
| Reset(Stream) |
重置此实例的内部状态,以便它可以与新实例 Stream一起重复使用。 |
Reset(Stream, JsonWriterOptions)
- Source:
- Utf8JsonWriter.cs
public:
void Reset(System::IO::Stream ^ utf8Json, System::Text::Json::JsonWriterOptions options);
public void Reset(System.IO.Stream utf8Json, System.Text.Json.JsonWriterOptions options);
member this.Reset : System.IO.Stream * System.Text.Json.JsonWriterOptions -> unit
Public Sub Reset (utf8Json As Stream, options As JsonWriterOptions)
参数
- utf8Json
- Stream
- options
- JsonWriterOptions
适用于
Reset(IBufferWriter<Byte>, JsonWriterOptions)
- Source:
- Utf8JsonWriter.cs
public:
void Reset(System::Buffers::IBufferWriter<System::Byte> ^ bufferWriter, System::Text::Json::JsonWriterOptions options);
public void Reset(System.Buffers.IBufferWriter<byte> bufferWriter, System.Text.Json.JsonWriterOptions options);
member this.Reset : System.Buffers.IBufferWriter<byte> * System.Text.Json.JsonWriterOptions -> unit
Public Sub Reset (bufferWriter As IBufferWriter(Of Byte), options As JsonWriterOptions)
参数
- bufferWriter
- IBufferWriter<Byte>
- options
- JsonWriterOptions
适用于
Reset()
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
重置此实例的内部状态,以便可以重复使用它。
public:
void Reset();
public void Reset();
member this.Reset : unit -> unit
Public Sub Reset ()
例外
此实例已释放。
注解
将继续 Utf8JsonWriter 使用原始编写器选项和原始输出( IBufferWriter<T> 或 Stream)作为目标。
适用于
Reset(IBufferWriter<Byte>)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
重置此实例的内部状态,以便它可以与新实例 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))
参数
- bufferWriter
- IBufferWriter<Byte>
写入 JSON 文本的目标。
例外
bufferWriter 是 null。
此实例已释放。
注解
该 Utf8JsonWriter 脚本将继续使用原始编写器选项,但现在将其写入 bufferWriter 为新目标。
适用于
Reset(Stream)
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
- Source:
- Utf8JsonWriter.cs
重置此实例的内部状态,以便它可以与新实例 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)
参数
- utf8Json
- Stream
写入 JSON 文本的目标。
例外
utf8Json 是 null。
此实例已释放。
注解
该 Utf8JsonWriter 脚本将继续使用原始编写器选项,但现在将其写入 utf8Json 为新目标。