System.Net.WebClient.QueryString Property

Gets or sets a collection of query name/value pairs associated with the request.

Syntax

public System.Collections.Specialized.NameValueCollection QueryString { get; set; }

Value

A System.Collections.Specialized.NameValueCollection that contains query name/value pairs associated with the request or, if this property has not been set or was set to null, a new instance of the System.Collections.Specialized.NameValueCollection class.

Remarks

The WebClient.QueryString property contains a System.Collections.Specialized.NameValueCollection instance containing name/value pairs that are appended to the URI as a query string. The contents of the WebClient.QueryString property are preceded by a question mark (?), and name/value pairs are separated from one another by an ampersand (&).

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0