Utf8JsonWriter.WriteBase64StringSegment 方法

定義

將輸入位元組寫入部分 JSON 字串。

public:
 void WriteBase64StringSegment(ReadOnlySpan<System::Byte> value, bool isFinalSegment);
public void WriteBase64StringSegment(ReadOnlySpan<byte> value, bool isFinalSegment);
member this.WriteBase64StringSegment : ReadOnlySpan<byte> * bool -> unit
Public Sub WriteBase64StringSegment (value As ReadOnlySpan(Of Byte), isFinalSegment As Boolean)

參數

value
ReadOnlySpan<Byte>

要寫成 JSON 陣列中 JSON 字串元素的位元組。

isFinalSegment
Boolean

表示這是該弦的最後一段。

例外狀況

指定的值太大了。

啟用驗證時,會導致寫入無效的 JSON,或是先前寫入的區段(若有)未以同樣的超載方式寫入。

適用於