Windows Dev Center

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

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 a "=" character present in the string, the substring to the left of the "=" character is the name and the right substring is the value.

The constructor doesn't do much validation on the string beyond verifying that it isn't null or the wrong type. If your input doesn't correctly represent a query string that starts with "?" and contains name-value pairs separated by "&", the collection contents are empty or invalid, and calls to GetFirstValueByName won't have the expected result.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

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:
© 2015 Microsoft