Share via


HttpWebRequest.RequestUri Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Overrides ReadOnly Property RequestUri As Uri
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.

Exceptions

Exception Condition
NotImplementedException

This property is not implemented.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.