ProxyConfiguration ProxyConfiguration ProxyConfiguration ProxyConfiguration ProxyConfiguration Class


Represents the proxy configuration for the current user.


This class is not supported on Windows Phone.

public : sealed class ProxyConfiguration
struct winrt::Windows::Networking::Connectivity::ProxyConfiguration
public sealed class ProxyConfiguration
Public NotInheritable Class ProxyConfiguration
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
privateNetworkClientServer internetClient


A ProxyConfiguration object is returned by calling the GetProxyConfigurationAsync method on the NetworkInformation object. If the GetProxyConfigurationAsync method is successful, the IAsyncOperation(ProxyConfiguration) handler for the method is passed a ProxyConfiguration object.

The proxy configuration returned is for the uri parameter passed to the GetProxyConfigurationAsync method. The uri parameter contains a hostname or IP address for the target endpoint and a service name, port number, or protocol scheme.

In a UWP app, the StreamSocket class supports connecting to a remote endpoint when proxies are required to plumb the connection. This support for proxies is automatic and transparent to the app. For more detailed information, see the remarks on Support for proxies in the StreamSocket class reference.


CanConnectDirectly CanConnectDirectly CanConnectDirectly CanConnectDirectly CanConnectDirectly

Gets a value that indicates if this configuration can connect directly.


This class property is not supported on Windows Phone.

ProxyUris ProxyUris ProxyUris ProxyUris ProxyUris

Gets a list of URIs for the proxies from the proxy configuration.


This class property is not supported on Windows Phone.

See also