Utf8JsonWriter.WriteCommentValue 方法

定义

重载

名称 说明
WriteCommentValue(ReadOnlySpan<Byte>)

将 UTF-8 文本值写入 JSON 注释。

WriteCommentValue(ReadOnlySpan<Char>)

将 UTF-16 文本值写入 JSON 注释。

WriteCommentValue(String)

将字符串文本值写入 JSON 注释。

WriteCommentValue(ReadOnlySpan<Byte>)

Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
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>)

Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
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)

Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
Utf8JsonWriter.WriteValues.Comment.cs
Source:
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包含注释分隔符(即)。 */

参数 valuenull.

注解

在编写之前,注释值不会转义。

适用于