ProxyConfiguration ProxyConfiguration ProxyConfiguration ProxyConfiguration ProxyConfiguration Class

Definition

Represents the proxy configuration for the current user.

Note

This class is not supported on Windows Phone.

public : sealed class ProxyConfiguration : IProxyConfiguration
struct winrt::Windows::Networking::Connectivity::ProxyConfiguration : IProxyConfiguration
public sealed class ProxyConfiguration : IProxyConfiguration
Public NotInheritable Class ProxyConfiguration Implements IProxyConfiguration
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
privateNetworkClientServer internetClient

Remarks

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.

Properties

CanConnectDirectly CanConnectDirectly CanConnectDirectly CanConnectDirectly CanConnectDirectly

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

Note

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.

Note

This class property is not supported on Windows Phone.

See Also