Utf8JsonWriter.WriteCommentValue Metodo

Definizione

Overload

WriteCommentValue(ReadOnlySpan<Byte>)

Scrive un valore di testo UTF-8 come commento JSON.

WriteCommentValue(ReadOnlySpan<Char>)

Scrive un valore di testo UTF-16 come commento JSON.

WriteCommentValue(String)

Scrive un valore di testo stringa come commento JSON.

WriteCommentValue(ReadOnlySpan<Byte>)

Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs

Scrive un valore di testo UTF-8 come commento 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))

Parametri

utf8Value
ReadOnlySpan<Byte>

Valore con codifica UTF-8 da scrivere come commento JSON all'interno di /../.

Eccezioni

Il valore specificato è troppo grande.

-oppure-

utf8Value contiene un delimitatore di commento (ovvero */).

Commenti

Il valore del commento non viene preceduto da escape prima della scrittura.

Si applica a

WriteCommentValue(ReadOnlySpan<Char>)

Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs

Scrive un valore di testo UTF-16 come commento 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))

Parametri

value
ReadOnlySpan<Char>

Valore con codifica UTF-16 da scrivere come commento JSON transcodificato UTF-8 all'interno di /../.

Eccezioni

Il valore specificato è troppo grande.

-oppure-

value contiene un delimitatore di commento (ovvero */).

Commenti

Il valore del commento non viene preceduto da escape prima della scrittura.

Si applica a

WriteCommentValue(String)

Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs
Origine:
Utf8JsonWriter.WriteValues.Comment.cs

Scrive un valore di testo stringa come commento JSON.

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

Parametri

value
String

Valore con codifica UTF-16 da scrivere come commento JSON transcodificato UTF-8 all'interno di /../.

Eccezioni

Il valore specificato è troppo grande.

-oppure-

value contiene un delimitatore di commento (ovvero */).

Il valore del parametro value è null.

Commenti

Il valore del commento non viene preceduto da escape prima della scrittura.

Si applica a