Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WwwFormUrlDecoder.WwwFormUrlDecoder constructor

Applies to Windows and Windows Phone

Creates and initializes a new instance of the WwwFormUrlDecoder class.

Syntax


var wwwFormUrlDecoder = new Windows.Foundation.WwwFormUrlDecoder(query);

Parameters

query

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The URL to parse.

Remarks

The query string must start with a "?" character.

Any "&" character encountered represents a new name-value pair. If there is an "=" character present in the string, the substring to the left of the "=" character is the name and the right substring is the value.

The following table shows how WwwFormUrlDecoder handles example query strings.

Example query stringResult
?param1=test&q=Value{("param1","test"),("q","Value")}
?param1&q{("param1",""),("q","")}
param1E_INVALIDARG
<empty string>E_INVALIDARG
?{("","")}
?param1{("param1","")}
?&{("",""),("","")}
?param1=&{("param1",""),("","")}
?=test&{("","test"),("","")}

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

See also

WwwFormUrlDecoder
IWwwFormUrlDecoderEntry

 

 

Show:
© 2014 Microsoft