QueryData ClassC# API
Represents the query string of a Url as a sequence of name/value pairs.
Inheritance Hierarchy

System Object
  Facilita.Web QueryData

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (1.0.0.0)
Syntax

public class QueryData : IDisposable
Remarks

The syntax of a URL is: scheme://domain:port/path?query_string#fragment_id

Often, the query string consists of a list of name/value pairs, separated by an ampersand.

e.g. key1=value1&key2=value2&key3=value2

It is convenient to use the QueryData class to define your query string as a series of name/value pairs.
Examples

The following example demonstrates creating a URL with a query string using a QueryData object.
// Construct the url "http://localhost/?key1=value1&key2=value2&key3=value3
Url url = new Url("http://localhost/");
QueryData queryData = new QueryData();
queryData.Add("key1", "value1");
queryData.Add("key2", "value2");
queryData.Add("key3", "value3");
url = url.WithQuery(queryData);
See Also