NetworkInformation NetworkInformation NetworkInformation NetworkInformation NetworkInformation Class

Definition

Provides access to network connection information for the local machine.

public : static class NetworkInformation
static struct winrt::Windows::Networking::Connectivity::NetworkInformation
public static class NetworkInformation
Public Shared Class NetworkInformation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Methods

FindConnectionProfilesAsync(ConnectionProfileFilter) FindConnectionProfilesAsync(ConnectionProfileFilter) FindConnectionProfilesAsync(ConnectionProfileFilter) FindConnectionProfilesAsync(ConnectionProfileFilter) FindConnectionProfilesAsync(ConnectionProfileFilter)

Returns an array of ConnectionProfile objects that match the filtering criteria defined by ConnectionProfileFilter.

GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles() GetConnectionProfiles()

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

GetHostNames() GetHostNames() GetHostNames() GetHostNames() GetHostNames()

Gets a list of host names associated with the local machine.

GetInternetConnectionProfile() GetInternetConnectionProfile() GetInternetConnectionProfile() GetInternetConnectionProfile() GetInternetConnectionProfile()

Gets the connection profile associated with the internet connection currently used by the local machine.

GetLanIdentifiers() GetLanIdentifiers() GetLanIdentifiers() GetLanIdentifiers() GetLanIdentifiers()

Gets an array of LanIdentifier objects that contain locality information for each NetworkAdapter object that currently connected to a network.

GetProxyConfigurationAsync(Uri) GetProxyConfigurationAsync(Uri) GetProxyConfigurationAsync(Uri) GetProxyConfigurationAsync(Uri) GetProxyConfigurationAsync(Uri)

Gets proxy configuration for a connection using the specified URI.

Note

This class method is not supported on Windows Phone.

GetSortedEndpointPairs(IIterable<EndpointPair>, HostNameSortOptions) GetSortedEndpointPairs(IIterable<EndpointPair>, HostNameSortOptions) GetSortedEndpointPairs(IIterable<EndpointPair>, HostNameSortOptions) GetSortedEndpointPairs(IIterable<EndpointPair>, HostNameSortOptions) GetSortedEndpointPairs(IIterable<EndpointPair>, HostNameSortOptions)

Gets a sorted list of EndpointPair objects.

Events

NetworkStatusChanged NetworkStatusChanged NetworkStatusChanged NetworkStatusChanged NetworkStatusChanged

Occurs when the network status changes for a connection.

See Also