Click or drag to resize

JsonStreamDeserializerExtensionsReadTokensAsync Method

Read an array at the current point in the stream as an array of .

Namespace:  Couchbase.Core.IO.Serializers
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public static IAsyncEnumerable<IJsonToken> ReadTokensAsync(
	this IJsonStreamReader reader,
	CancellationToken cancellationToken = null
)

Parameters

reader
Type: Couchbase.Core.IO.SerializersIJsonStreamReader
The .
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: IAsyncEnumerableIJsonToken
An IAsyncEnumerable of the tokens.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IJsonStreamReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also