NetworkInformation.GetConnectionProfiles Method

Gets a list of profiles for connections, active or otherwise, on the local machine.

Syntax

public:
static IVectorView<ConnectionProfile>^ GetConnectionProfiles()  

Return value

Type: IVectorView<ConnectionProfile

  An array of ConnectionProfile objects.

Remarks

The following example demonstrates how to retrieve a ConnectionProfile. The function calls getConnectionProfiles to retrieve all available connections on a device and display using a list. Alternatively, your app can call getInternetConnectionProfile to retrieve the ConnectionProfile representing the connection currently used for Internet connectivity.

Example

For additional examples of how NetworkInformation class methods are implemented to retrieve connection profiles, see Quickstart: Retrieving network connection information.

This API is not implemented and will throw an exception if called.

Requirements

Namespace: Windows.Networking.Connectivity

Metadata: windows.winmd

See also

Reference

NetworkInformation Class

NetworkInformation Members

Windows.Networking.Connectivity Namespace