NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DNS.GetHostName

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;

Return Value

A string containing the DNS host name of the local machine.

See Also

DNS Class | DNS Members | System.Net Namespace