Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProxyConfiguration class

Applies to Windows only

Represents the proxy configuration for the current user.

Note  This class is not supported on Windows Phone.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The ProxyConfiguration class has these types of members:

Methods

The ProxyConfiguration class inherits methods from the Object class (C#/VB/C++).

Properties

The ProxyConfiguration class has these properties.

PropertyAccess typeDescription

CanConnectDirectly

Read-onlyGets a value that indicates if this configuration can connect directly. This class property is not supported on Windows Phone.

ProxyUris

Read-onlyGets a list of URIs for the proxy configuration. This class property is not supported on Windows Phone.

 

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

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

Capabilities

internetClient
privateNetworkClientServer

See also

GetProxyConfigurationAsync
StreamSocket

 

 

Show:
© 2014 Microsoft