Export (0) Print
Expand All

HttpWebRequest.RequestUri Property

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.

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

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

Community Additions

ADD
Show:
© 2014 Microsoft