Creates and initializes a new instance of the WwwFormUrlDecoder class.
public:
WwwFormUrlDecoder(
String^ query
)
query
Type: String
The URL to parse.
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”),(“”,””)} |
Namespace: Windows.Foundation
Metadata: windows.winmd