Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Uri.AbsoluteUri Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the absolute URI.

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

public string AbsoluteUri { get; }

Property Value

Type: System.String

A String containing the entire URI.

Exception Condition

This instance represents a relative URI, and this property is valid only for absolute URIs.

The AbsoluteUri property includes the entire URI stored in the Uri instance, including all fragments and query strings.

The following example writes the complete contents of the Uri instance to the console. In the example shown, is written to the console.

Uri baseUri= new Uri("");
 Uri myUri = new Uri(baseUri,"catalog/shownew.htm?date=today");

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