Mono Class Library: System.UriBuilder Overview | Members

System.UriBuilder.Query Property

Gets or sets the query component of the current instance.

public string Query { set; get; }

Value

A string containing the query component of the URI represented by the current instance.

Remarks

The UriBuilder.Query property contains any text following a query marker ('?') in the URI, including the marker itself. When setting the UriBuilder.Query property, the property value does not include the query marker as it is added to the property value by the set operation. Specifying null for the UriBuilder.Query property value sets the property to string.Empty. If null or string.Empty are specified in a set operation, the query marker is not added to the property value. The set operation does not escape the query value.

Setting the UriBuilder.Query property to any value, including null , sets the UriBuilder.Fragment property to string.Empty .

Requirements

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