WwwFormUrlDecoder Constructor

Creates and initializes a new instance of the WwwFormUrlDecoder class.

Syntax

public:
WwwFormUrlDecoder(
         String^ query
)  

Parameters

query
Type: String 

  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 string Result
?param1=test&q=Value {(“param1”,”test”),(“q”,”Value”)}
?param1&q {(“param1”,””),(“q”,””)}
param1 E_INVALIDARG
<empty string> E_INVALIDARG
? {(“”,””)}
?param1 {(“param1”,””)}
?& {(“”,””),(“”,””)}
?param1=& {(“param1”,””),(“”,””)}
?=test& {(“”,”test”),(“”,””)}

Requirements

Namespace: Windows.Foundation

Metadata: windows.winmd

See also

Reference

WwwFormUrlDecoder Class

WwwFormUrlDecoder Members

Windows.Foundation Namespace