GetProxy Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the proxied URI for a request.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Function GetProxy ( _
destination As Uri _
) As Uri
public Uri GetProxy(
Uri destination
)
public:
virtual Uri^ GetProxy(
Uri^ destination
) sealed
abstract GetProxy :
destination:Uri -> Uri
override GetProxy :
destination:Uri -> Uri
public final function GetProxy(
destination : Uri
) : Uri
Parameters
- destination
Type: System. . :: . .Uri
The Uri instance of the requested Internet resource.
Return Value
Type: System. . :: . .Uri
The Uri instance of the Internet resource, if the resource is on the bypass list; otherwise, the Uri instance of the proxy.
Implements
IWebProxy. . :: . .GetProxy(Uri)
Remarks
The GetProxy method returns the URI that the WebRequest instance uses to access the Internet resource.
GetProxy compares destination with the contents of BypassList, using the IsBypassed method. If IsBypassed returns true, GetProxy returns destination and the WebRequest instance does not use the proxy server.
If destination is not in BypassList, the WebRequest instance uses the proxy server and the Address property is returned.
.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.