NetworkInformation.GetProxyConfigurationAsync(Uri) NetworkInformation.GetProxyConfigurationAsync(Uri) NetworkInformation.GetProxyConfigurationAsync(Uri) NetworkInformation.GetProxyConfigurationAsync(Uri) NetworkInformation.GetProxyConfigurationAsync(Uri) Method

Definition

Gets proxy configuration for a connection using the specified URI.

Note

This class method is not supported on Windows Phone.

public : static IAsyncOperation<ProxyConfiguration> GetProxyConfigurationAsync(Uri uri)
static IAsyncOperation<ProxyConfiguration> GetProxyConfigurationAsync(Uri uri) const;
public static IAsyncOperation<ProxyConfiguration> GetProxyConfigurationAsync(Uri uri)
Public Shared Function GetProxyConfigurationAsync(uri As Uri) As IAsyncOperation(Of ProxyConfiguration)
Windows.Networking.Connectivity.NetworkInformation.getProxyConfigurationAsync(uri).done( /* Your success and error handlers */ );

Parameters

uri
Uri Uri Uri

The proxy configuration URI.

Returns

Remarks

The uri parameter passed to the GetProxyConfigurationAsync method should contain a hostname or IP address for the target endpoint and service name, port number, or protocol scheme.

If the GetProxyConfigurationAsync method is successful, a ProxyConfiguration object for the specified uri parameter is returned by the IAsyncOperation(ProxyConfiguration) handler.

In a UWP app, the StreamSocket class supports connecting to a remote endpoint when proxies are required to complete 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.

See also