Uri Property
Collapse the table of content
Expand the table of content

UriBuilder.Uri Property

 

Gets the Uri instance constructed by the specified UriBuilder instance.

Namespace:   System
Assembly:  System (in System.dll)

public Uri Uri { get; }

Property Value

Type: System.Uri

A Uri that contains the URI constructed by the UriBuilder.

Exception Condition
UriFormatException
System_CAPS_noteNote

In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, FormatException, instead.

The URI constructed by the UriBuilder properties is invalid.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft