UriExtensions.TryReadQueryAsJson Method

Reads HTML form URL encoded data provided in the Uri query component as a JObject object.

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public static bool TryReadQueryAsJson(
	this Uri address,
	out JObject value


Type: System.Uri
The Uri instance from which to read.
Type: JObject
An object to be initialized with this instance or null if the conversion cannot be performed.

Return Value

Type: System.Boolean
true if the query component can be read as JObject; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Uri. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936 or https://msdn.microsoft.com/en-us/library/bb383977.