Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
)

Parameters

address
Type: System.Uri

The Uri instance from which to read.

value
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(v=vs.108).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).aspx.
Show:
© 2015 Microsoft