Gets the host name of the local machine.
[Visual Basic] Public Shared Function GetHostName() As String [C#] public static string GetHostName(); [C++] public: static String* GetHostName(); [JScript] public static function GetHostName() : String;
A string containing the DNS host name of the local machine.