Utf8JsonWriter.WriteCommentValue 方法

定義

多載

WriteCommentValue(ReadOnlySpan<Byte>)

寫入 UTF-8 文字值作為 JSON 註解。

WriteCommentValue(ReadOnlySpan<Char>)

寫入 UTF-16 文字值作為 JSON 註解。

WriteCommentValue(String)

寫入字串文字值作為 JSON 註解。

WriteCommentValue(ReadOnlySpan<Byte>)

來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs

寫入 UTF-8 文字值作為 JSON 註解。

public:
 void WriteCommentValue(ReadOnlySpan<System::Byte> utf8Value);
public void WriteCommentValue (ReadOnlySpan<byte> utf8Value);
member this.WriteCommentValue : ReadOnlySpan<byte> -> unit
Public Sub WriteCommentValue (utf8Value As ReadOnlySpan(Of Byte))

參數

utf8Value
ReadOnlySpan<Byte>

/../ 內寫入為 JSON 註解的 UTF-8 編碼值。

例外狀況

指定的值太大。

-或-

utf8Value 包含註解分隔符號 (亦即 */)。

備註

在寫入之前,批註值不會逸出。

適用於

WriteCommentValue(ReadOnlySpan<Char>)

來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs

寫入 UTF-16 文字值作為 JSON 註解。

public:
 void WriteCommentValue(ReadOnlySpan<char> value);
public void WriteCommentValue (ReadOnlySpan<char> value);
member this.WriteCommentValue : ReadOnlySpan<char> -> unit
Public Sub WriteCommentValue (value As ReadOnlySpan(Of Char))

參數

value
ReadOnlySpan<Char>

/../ 內寫入為 UTF-8 轉碼 JSON 註解的 UTF-16 編碼值。

例外狀況

指定的值太大。

-或-

value 包含註解分隔符號 (亦即 */)。

備註

在寫入之前,批註值不會逸出。

適用於

WriteCommentValue(String)

來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs
來源:
Utf8JsonWriter.WriteValues.Comment.cs

寫入字串文字值作為 JSON 註解。

public:
 void WriteCommentValue(System::String ^ value);
public void WriteCommentValue (string value);
member this.WriteCommentValue : string -> unit
Public Sub WriteCommentValue (value As String)

參數

value
String

/../ 內寫入為 UTF-8 轉碼 JSON 註解的 UTF-16 編碼值。

例外狀況

指定的值太大。

-或-

value 包含註解分隔符號 (亦即 */)。

value 參數為 null

備註

在寫入之前,批註值不會逸出。

適用於