Click or drag to resize

IJsonStreamReaderReadToNextAttributeAsync 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
Syntax
C#
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: TaskString
null if the end of the stream is reached"
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