System.Net.WebResponse.ResponseUri Property

When overridden in a derived class, gets the URI of the Internet resource that actually responded to the request.

Syntax

public virtual Uri ResponseUri { get; }

Value

A Uri containing the URI of the resource associated with the current response.

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class.

Remarks

The WebResponse.ResponseUri property contains the URI of the Internet resource that actually provided the response data. This resource might not be the originally requested URI if the underlying protocol allows redirection of the request.

Note:

The System.Net.WebResponse class is an abstract class. The actual behavior of System.Net.WebResponse instances at run time is determined by the descendant class returned by WebRequest.GetResponse. For more information about default values and exceptions, please see the documentation for the descendant classes, such as System.Net.HttpWebResponse and System.Net.FileWebResponse.

Requirements

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