Information
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

Gets the absolute URI.

[Visual Basic]
Public ReadOnly Property AbsoluteUri As String
[C#]
public string AbsoluteUri {get;}
[C++]
public: __property String* get_AbsoluteUri();
[JScript]
public function get AbsoluteUri() : String;

Property Value

A string containing the entire URI.

Remarks

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

Example

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:

[Visual Basic] 
Dim baseUri As New Uri("http://www.contoso.com")
Dim myUri As New Uri(baseUri, "catalog/shownew.htm?date=today")
Console.WriteLine(myUri.AbsoluteUri)


[C#] 
Uri baseUri= new Uri("http://www.contoso.com");
 Uri myUri = new Uri(baseUri,"catalog/shownew.htm?date=today");
 Console.WriteLine(myUri.AbsoluteUri);
   

[C++] 
Uri* baseUri= new Uri(S"http://www.contoso.com");
Uri* myUri = new Uri(baseUri,S"catalog/shownew.htm?date=today");
Console::WriteLine(myUri->AbsoluteUri);
   

[JScript] 
var baseUri : Uri = new Uri("http://www.contoso.com");
var myUri : Uri = new Uri(baseUri,"catalog/shownew.htm?date=today");
Console.WriteLine(myUri.AbsoluteUri);

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft