Utf8JsonWriter.WriteCommentValue Metoda

Definice

Přetížení

Name Description
WriteCommentValue(ReadOnlySpan<Byte>)

Zapíše textovou hodnotu UTF-8 jako komentář JSON.

WriteCommentValue(ReadOnlySpan<Char>)

Zapíše textovou hodnotu UTF-16 jako komentář JSON.

WriteCommentValue(String)

Zapíše textovou hodnotu řetězce jako komentář JSON.

WriteCommentValue(ReadOnlySpan<Byte>)

Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs

Zapíše textovou hodnotu UTF-8 jako komentář 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))

Parametry

utf8Value
ReadOnlySpan<Byte>

Zakódovaná hodnota UTF-8, která se má zapsat jako komentář JSON v rámci /../.

Výjimky

Zadaná hodnota je příliš velká.

nebo

utf8Value obsahuje oddělovač komentářů (to znamená */).

Poznámky

Hodnota komentáře není před zápisem uchycená.

Platí pro

WriteCommentValue(ReadOnlySpan<Char>)

Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs

Zapíše textovou hodnotu UTF-16 jako komentář 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))

Parametry

value
ReadOnlySpan<Char>

Zakódovaná hodnota UTF-16, která se má zapsat jako transkódovaný komentář JSON UTF-8 v rámci /../.

Výjimky

Zadaná hodnota je příliš velká.

nebo

value obsahuje oddělovač komentářů (to znamená */).

Poznámky

Hodnota komentáře není před zápisem uchycená.

Platí pro

WriteCommentValue(String)

Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs
Zdroj:
Utf8JsonWriter.WriteValues.Comment.cs

Zapíše textovou hodnotu řetězce jako komentář JSON.

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

Parametry

value
String

Zakódovaná hodnota UTF-16, která se má zapsat jako transkódovaný komentář JSON UTF-8 v rámci /../.

Výjimky

Zadaná hodnota je příliš velká.

nebo

value obsahuje oddělovač komentářů (to znamená */).

Parametr value je null.

Poznámky

Hodnota komentáře není před zápisem uchycená.

Platí pro