CFNetwork.GetDefaultProxy Method

Definition

Gets a custom T:System.Net.IWebProxy suitable for use with the standard .NET web request APIs.

public static System.Net.IWebProxy GetDefaultProxy ();
static member GetDefaultProxy : unit -> System.Net.IWebProxy

Returns

A custom T:System.Net.IWebProxy which uses GetProxiesForUri(Uri, CFProxySettings) to find a suitable proxy Uri to use.

Remarks

T:System.Net.WebRequest Uses this method to initialize its P:System.Net.WebRequest.Proxy property.

Applies to