![Json.NET](../icons/logo.jpg) | 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
Syntaxpublic 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:
TaskJRawA
TaskTResult representing the asynchronous creation. The
Result
property returns an instance of
JRaw with the content of the reader's current token.
See Also