NetworkInformation.GetHostNames NetworkInformation.GetHostNames NetworkInformation.GetHostNames NetworkInformation.GetHostNames NetworkInformation.GetHostNames Method

Definition

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

public : static IVectorView<HostName> GetHostNames()
static IVectorView<HostName> GetHostNames() const;
public static IReadOnlyList<HostName> GetHostNames()
Public Shared Function GetHostNames() As IReadOnlyList<HostName>(Of HostName)
var iVectorView = Windows.Networking.Connectivity.NetworkInformation.getHostNames();

Returns

IReadOnlyList<HostName> IReadOnlyList<HostName> IReadOnlyList<HostName>

An array of host names for the local machine.