System.UriBuilder.Uri Property

Gets the Uri instance constructed by the specified UriBuilder instance.

Syntax

public Uri Uri { get; }

Value

A Uri containing the URI components of the current instance.

Exceptions

TypeReason
UriFormatExceptionThe URI constructed using the string representation of the current instance is in an invalid form.

Remarks

The UriBuilder.Uri property contains the Uri created by the UriBuilder. Any changes made to the UriBuilder properties are reflected in the UriBuilder.Uri property.

Requirements

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