Click or drag to resize
Json.NET

JProperty.LoadAsync Method (JsonReader, JsonLoadSettings, CancellationToken)

 
Asynchronously loads a JProperty from a JsonReader.

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

Parameters

reader
Type: Newtonsoft.Json.JsonReader
A JsonReader that will be read for the content of the JProperty.
settings
Type: Newtonsoft.Json.Linq.JsonLoadSettings
The JsonLoadSettings used to load the JSON. If this is null, default load settings will be used.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
The token to monitor for cancellation requests. The default value is None.

Return Value

Type: Task<JProperty>
A Task<TResult> representing the asynchronous creation. The Result property returns a JProperty that contains the JSON that was read from the specified JsonReader.
See Also