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)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function TryReadQueryAsJson ( _
address As Uri, _
<OutAttribute> ByRef value As JObject _
) As Boolean
'Usage
Dim address As Uri
Dim value As JObject
Dim returnValue As Boolean
returnValue = address.TryReadQueryAsJson(value)
public static bool TryReadQueryAsJson(
this Uri address,
out JObject value
)
[ExtensionAttribute]
public:
static bool TryReadQueryAsJson(
Uri^ address,
[OutAttribute] JObject^% value
)
static member TryReadQueryAsJson :
address:Uri *
value:JObject byref -> bool
public static function TryReadQueryAsJson(
address : Uri,
value : JObject
) : boolean
Parameters
address
Type: System.UriThe 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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).