FormUrlEncodedJson.TryParse Method (IEnumerable<KeyValuePair<String, String>>, Int32, JsonObject%)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Parses a collection of query string values as a JsonObject.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Shared Function TryParse ( _
    nameValuePairs As IEnumerable(Of KeyValuePair(Of String, String)), _
    maxDepth As Integer, _
    <OutAttribute> ByRef value As JsonObject _
) As Boolean
public static bool TryParse(
    IEnumerable<KeyValuePair<string, string>> nameValuePairs,
    int maxDepth,
    out JsonObject value
)
public:
static bool TryParse(
    IEnumerable<KeyValuePair<String^, String^>>^ nameValuePairs, 
    int maxDepth, 
    [OutAttribute] JsonObject^% value
)
static member TryParse : 
        nameValuePairs:IEnumerable<KeyValuePair<string, string>> * 
        maxDepth:int * 
        value:JsonObject byref -> bool 
public static function TryParse(
    nameValuePairs : IEnumerable<KeyValuePair<String, String>>, 
    maxDepth : int, 
    value : JsonObject
) : boolean

Parameters

  • maxDepth
    Type: System.Int32
    The maximum depth of object graph encoded as x-www-form-urlencoded.
  • value
    Type: System.Json.JsonObject
    The parsed result or nulla null reference (Nothing in Visual Basic) if parsing failed.

Return Value

Type: System.Boolean
true if nameValuePairs was parsed successfully; otherwise, false.

Remarks

This is a low-level API intended for use by other APIs. It has been optimized for performance and is not intended to be called directly from user code.

.NET Framework Security

See Also

Reference

FormUrlEncodedJson Class

TryParse Overload

System.Json Namespace