HttpWebRequest.RequestUri Property

May 11, 2014

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.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft