Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Utf8JsonReader.HasValueSequence Property
Definition
- Namespace:
- System.Text.Json
- Assembly:
- System.Text.Json.dll
- Package:
- System.Text.Json v11.0.0-preview.5.26302.115
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
- Source:
- Utf8JsonReader.cs
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.
Gets a value that indicates which Value property to use to get the token value.
public:
property bool HasValueSequence { bool get(); };
public bool HasValueSequence { get; }
member this.HasValueSequence : bool
Public ReadOnly Property HasValueSequence As Boolean
Property Value
true if ValueSequence should be used to get the token value; false if ValueSpan should be used instead.
Remarks
If HasValueSequence is false, ValueSequence is empty. Therefore, read the token value using the ValueSpan property.
For input data within a ReadOnlySpan<byte>, this always returns false. For input data within a ReadOnlySequence<byte>, this only returns true if the token value straddles more than a single segment and hence can't be represented as a span.
Applies to
Feedback
Was this page helpful?
