Click or drag to resize
Json.NET

JRawCreateAsync Method

 
Asynchronously creates an instance of JRaw with the content of the reader's current token.

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

Parameters

reader
Type: Newtonsoft.JsonJsonReader
The reader.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.

Return Value

Type: TaskJRaw
A TaskTResult representing the asynchronous creation. The Result property returns an instance of JRaw with the content of the reader's current token.
See Also