Partager via


HtmlDocument.QueryString Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a navigable, read-only collection of name/value pairs that represent the query string parameters on the current page's URL.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public ReadOnly Property QueryString As IDictionary(Of String, String)
public IDictionary<string, string> QueryString { get; }

Property Value

Type: System.Collections.Generic.IDictionary<String, String>
The query string parameters on the current page's URL.

Remarks

You cannot modify the query string parameters. (This is considered a page navigation action; see the Navigate overloads in the HtmlWindow class.)

If the current page URL has no query string variables, the property returns an empty collection.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.