Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the URI of the Internet resource that responded to the request.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property ResponseUri As Uri
public override Uri ResponseUri { get; }
public:
virtual property Uri^ ResponseUri {
Uri^ get () override;
}
abstract ResponseUri : Uri with get
override ResponseUri : Uri with get
override function get ResponseUri () : Uri
Property Value
Type: System. . :: . .Uri
A Uri that contains the URI of the Internet resource that responded to the request.
Remarks
The ResponseUri property contains the URI of the Internet resource that actually responded to the request. This URI might not be the same as the originally requested URI, if the original server redirected the request.
The ResponseUri property will use the Content-Location header if present.
Applications that need to access the last redirected ResponseUri should use the HttpWebRequest..::..Address property rather than ResponseUri, since the use of ResponseUri property may open security vulnerabilities.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.