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
- nameValuePairs
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>
The collection of query string name-value pairs parsed in lexical order. Both names and values must be un-escaped so that they do not contain any Uri encoding.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.