This topic has not yet been rated - Rate this topic

HttpWebRequest.RequestUri Property

May 02, 2013

Gets the original Uniform Resource Identifier (URI) of the request.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)
public override Uri RequestUri { get; }

Property Value

Type: System.Uri
A Uri that contains the URI of the Internet resource passed to the WebRequest.Create method.
ExceptionCondition
NotImplementedException

This property is not implemented.

The Uri object passed to HttpWebRequest by the call to WebRequest.Create.

Following a redirection header does not change the RequestUri property.

If an application implements a custom WebRequest class and does not override the RequestUri property, then the NotImplementedException is thrown.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.