Skip to main content
ConnectionProfile.GetNetworkNames | getNetworkNames method

Retrieves names associated with the network with which the connection is currently established.

Syntax


var iVectorView = connectionProfile.getNetworkNames();

public IReadOnlyList<string> GetNetworkNames()

Public Function GetNetworkNames() As IReadOnlyList(Of String)

public:
IVectorView<String^>^ GetNetworkNames()

Parameters

This method has no parameters.

Return value

Type: IVectorView<String> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<String> [.NET]

An array of string values representing friendly names used to identify the local endpoint.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

ConnectionProfile