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

System.Net.WebProxy.GetProxy Method

Returns the URI of the server that is contacted for the specified resource.

public Uri GetProxy (Uri destination)

Parameters

destination
The Uri of the requested resource.

Returns

If destination is on the bypass list of the current instance, returns destination; otherwise, returns the WebProxy.Address of the current instance.

Remarks

This method returns the URI that the System.Net.WebRequest uses to access the resource. WebProxy.GetProxy(Uri) compares destination with the contents of WebProxy.BypassList using the WebProxy.IsBypassed(Uri) method.

Requirements

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