Utf8JsonReader.HasValueSequence プロパティ
定義
トークン値を取得するために使用する Value
プロパティを示す値を取得します。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
プロパティ値
true
ValueSequenceトークン値を取得するためにを使用する必要がある場合は false
ValueSpan 。代わりにを使用する必要がある場合は。true
if ValueSequence should be used to get the token value; false
if ValueSpan should be used instead.
注釈
がの場合 HasValueSequence
false
、 ValueSequence は空です。If HasValueSequence
is false
, ValueSequence is empty. そのため、プロパティを使用してトークン値を読み取り ValueSpan ます。Therefore, read the token value using the ValueSpan property.
内の入力データの場合 ReadOnlySpan<byte>
、これは常にを返し false
ます。For input data within a ReadOnlySpan<byte>
, this always returns false
. 内の入力データの ReadOnlySequence<byte>
場合は、 true
トークン値が1つ以上のセグメントをまたがっし、そのためにスパンとして表すことができない場合にのみ、が返されます。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.