NetworkInformation.GetHostNames Method

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

Syntax

public:
static IVectorView<HostName>^ GetHostNames()  

Return value

Type: IVectorView<HostName

  An array of host names for the local machine.

Requirements

Namespace: Windows.Networking.Connectivity

Metadata: windows.winmd

See also

Reference

NetworkInformation Class

NetworkInformation Members

Windows.Networking.Connectivity Namespace