Utf8JsonWriter.WriteStringValueSegment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| WriteStringValueSegment(ReadOnlySpan<Byte>, Boolean) |
Writes the UTF-8 text value segment as a partial JSON string. |
| WriteStringValueSegment(ReadOnlySpan<Char>, Boolean) |
Writes the text value segment as a partial JSON string. |
WriteStringValueSegment(ReadOnlySpan<Byte>, Boolean)
Writes the UTF-8 text value segment as a partial JSON string.
public:
void WriteStringValueSegment(ReadOnlySpan<System::Byte> value, bool isFinalSegment);
public void WriteStringValueSegment(ReadOnlySpan<byte> value, bool isFinalSegment);
member this.WriteStringValueSegment : ReadOnlySpan<byte> * bool -> unit
Public Sub WriteStringValueSegment (value As ReadOnlySpan(Of Byte), isFinalSegment As Boolean)
Parameters
- value
- ReadOnlySpan<Byte>
The UTF-8 encoded value to be written as a JSON string element of a JSON array.
- isFinalSegment
- Boolean
Indicates that this is the final segment of the string.
Exceptions
The specified value is too large.
When validation is enabled, this would result in invalid JSON being written, or if the previously written segment (if any) was not written with this same overload.
Remarks
The value is escaped before writing.
Applies to
WriteStringValueSegment(ReadOnlySpan<Char>, Boolean)
Writes the text value segment as a partial JSON string.
public:
void WriteStringValueSegment(ReadOnlySpan<char> value, bool isFinalSegment);
public void WriteStringValueSegment(ReadOnlySpan<char> value, bool isFinalSegment);
member this.WriteStringValueSegment : ReadOnlySpan<char> * bool -> unit
Public Sub WriteStringValueSegment (value As ReadOnlySpan(Of Char), isFinalSegment As Boolean)
Parameters
- value
- ReadOnlySpan<Char>
The value to write.
- isFinalSegment
- Boolean
Indicates that this is the final segment of the string.
Exceptions
The specified value is too large.
When validation is enabled, this would result in invalid JSON being written, or if the previously written segment (if any) was not written with this same overload.
Remarks
The value is escaped before writing.