Uri.AbsoluteUri Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the absolute URI.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | This property is valid only for an absolute Uri instance. |
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, http://www.contoso.com/catalog/shownew.htm?date=today is written to the console.