IPHostEntry.HostName Property
Gets the Domain Name System (DNS) name of a specific host server.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
public string HostName { get; }
Property Value
A string that contains the primary host name for the server.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.