Windows Dev Center

Uri.Query | query property

Gets the query string component of the Uniform Resource Identifier (URI) as stored in this Uri instance.

Syntax


var query = uri.query;

Property value

Type: String [JavaScript] | Platform::String [C++]

The query string.

Remarks

Query reports the query portion of the URI, and the subdelimiters (& characters) and key-value separators (=) are all reported as-is in that string. QueryParsed parses this string and creates a map of key-value pairs. This map is returned as a WwwFormUrlDecoder object.

Requirements (Windows 10 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 (Windows 8.x and Windows Phone 8.x)

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

Uri

 

 

Show:
© 2015 Microsoft