Mono Class Library: System.UriBuilder Overview | Members

System.UriBuilder.Fragment Property

Gets or sets the fragment component of the current instance.

public string Fragment { set; get; }

Value

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

Remarks

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

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

Requirements

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