Click or drag to resize
Json.NET

JConstructorLoadAsync Method (JsonReader, CancellationToken)

 
Asynchronously loads a JConstructor from a JsonReader.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static Task<JConstructor> LoadAsync(
	JsonReader reader,
	CancellationToken cancellationToken = null
)

Parameters

reader
Type: Newtonsoft.JsonJsonReader
A JsonReader that will be read for the content of the JConstructor.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.

Return Value

Type: TaskJConstructor
A TaskTResult that represents the asynchronous load. The Result property returns a JConstructor that contains the JSON that was read from the specified JsonReader.
See Also