 | DefaultJsonStreamReaderReadToNextAttributeAsync Method |
Reads until the next attribute is found in the stream. Returns the path to the attribute,
or
Field Value
Type: TaskString
null if the end of the stream is reached.
Namespace:
Couchbase.Core.IO.Serializers
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxpublic Task<string> ReadToNextAttributeAsync(
CancellationToken cancellationToken = null
)
Parameters
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
Cancellation token.
Return Value
Type:
TaskString
Path to the attribute relative to the overall stream,
or
Field Value
Type:
TaskStringnull if the end of the stream is reached"
Implements
IJsonStreamReaderReadToNextAttributeAsync(CancellationToken)
Remarks
The returned path is "." separated, and relative to the overall stream. For example, if
the attribute "metrics" is on the root object, returns "metrics". If the attribute reached
is "count" on the "metrics" object, the returned value is "metrics.count".
See Also