- destination
- The Uri instance of the requested Internet resource.
The Uri instance of the Internet resource, if the resource is on the bypass list; otherwise, the Uri instance of the proxy.
The WebProxy.GetProxy(Uri) method returns the URI that the System.Net.WebRequest instance uses to access the Internet resource.
WebProxy.GetProxy(Uri) compares destination with the contents of WebProxy.BypassList, using the WebProxy.IsBypassed(Uri) method. If WebProxy.IsBypassed(Uri) returns true, WebProxy.GetProxy(Uri) returns destination and the System.Net.WebRequest instance does not use the proxy server.
If destination is not in WebProxy.BypassList, the System.Net.WebRequest instance uses the proxy server and the WebProxy.Address property is returned.