Mono Class Library: System.Net.WebRequest Overview | Members

System.Net.WebRequest.RequestUri Property

Gets the Uri of the resource associated with the current instance.

public virtual Uri RequestUri { get; }

Value

A Uri containing the URI of the resource associated with the current instance

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class.

Remarks

This property is read-only.

Operation
WebRequest.RequestUri is required to contain the URI passed to the WebRequest.Create(Uri, bool) methods. If the protocol implemented by a derived class supports redirection, the derived class is required to provide a property to contain the URI that actually services the request.

This property throws a NotSupportedException exception.

Note to Inheritors
This property must be overridden by classes that inherit from System.Net.WebRequest to provide this functionality. ]

Usage
Use this property to determine the URI that the request was addressed to. For information about the URI that actually serviced the request, see WebResponse.ResponseUri .

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0