In The Hand - .NET Components for Mobility
HostName Property
NamespacesInTheHand.Net.NetworkInformationIPGlobalPropertiesHostName
Gets the host name for the local computer.
Declaration Syntax
C#Visual Basic
public string HostName { get; }
Public ReadOnly Property HostName As String
Value
A String instance that contains the computer's NetBIOS name.
Remarks
A computer's NetBIOS name must be unique within a network and is not fully qualified by the domain name.
Exceptions
ExceptionCondition
NetworkInformationExceptionA Win32 function call failed.

Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 2.1.0.0