Gets the DNS host name of the local machine.
A string containing the DNS host name of the local machine.
Type Reason System.Net.DnsPermission Requires unrestricted permission for accessing DNS information. See System.Net.DnsPermission and System.Security.Permissions.PermissionState.Unrestricted.
Type Reason System.Net.Sockets.SocketException An error was encountered resolving the local host name. System.Security.SecurityException The caller does not have permission to access DNS information.
Documentation for this section has not yet been entered.
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0