Share via


CFNetwork.GetDefaultProxy Method

Definition

Gets a custom 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 IWebProxy which uses GetProxiesForUri(Uri, CFProxySettings) to find a suitable proxy Uri to use.

Remarks

WebRequest Uses this method to initialize its Proxy property.

Applies to