EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

NetworkInformation.GetProxyConfigurationAsync | getProxyConfigurationAsync method

Applies to Windows only

Gets proxy configuration for a connection using the specified URI.

Note  This class method is not supported on Windows Phone.

Syntax


Public Shared Function GetProxyConfigurationAsync(
  uri As Uri 
) As IAsyncOperation(Of ProxyConfiguration)

Parameters

uri

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

The proxy configuration URI.

Return value

Type: IAsyncOperation<ProxyConfiguration>

Information about the connection proxy.

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 Windows Store 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

NetworkInformation
ProxyConfiguration
StreamSocket

 

 

Mostrar:
© 2014 Microsoft