NavigationContext.QueryString Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a collection of query string values.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Property QueryString As IDictionary(Of String, String)
public IDictionary<string, string> QueryString { get; private set; }

Property Value

Type: System.Collections.Generic..::.IDictionary<(Of <(String, String>)>)
A collection that contains the query string values.

Remarks

You retrieve values from the query string to generate the desired state of a page for a navigation request. A navigation request with query string values includes the query string key/value pairs after a question mark (?) delimiter. For example, you can store in the query string the identifier of the record you wish to display on a page, such as /Views/Product.xaml?productid=45&format=long. The values from the query string are decoded before being stored in the QueryString collection.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

NavigationContext Class

System.Windows.Navigation Namespace

NavigationService

Page

Frame

Other Resources

In-app navigation for Windows Phone 8