Utf8JsonReader.ValueSequence Utf8JsonReader.ValueSequence Utf8JsonReader.ValueSequence Utf8JsonReader.ValueSequence Property

Definition

Gets the value of the last processed token as a ReadOnlySpan<byte> slice of the input payload. If the JSON is provided within a ReadOnlySequence<byte> and the slice that represents the token value fits in a single segment, then ValueSpan contains the sliced value since it can be represented as a span. Otherwise, ValueSequence contains the token value.

public:
 property System::Buffers::ReadOnlySequence<System::Byte> ValueSequence { System::Buffers::ReadOnlySequence<System::Byte> get(); };
public System.Buffers.ReadOnlySequence<byte> ValueSequence { get; }
member this.ValueSequence : System.Buffers.ReadOnlySequence<byte>
Public ReadOnly Property ValueSequence As ReadOnlySequence(Of Byte)

Property Value

Remarks

If HasValueSequence is false, ValueSequence is empty. Therefore, only access ValueSequence if HasValueSequence is true. Otherwise, the token value must be accessed from ValueSpan.

Applies to