System.Net.NetworkInformation.IPGlobalProperties.HostName Property

Gets the host name for the local computer.

Syntax

public abstract string HostName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property calls into the native IP Helper function, GetNetworkParams, which returns a FIXED_INFO structure that contains the NetBIOS host name string. The host name string is truncated when it exceeds 15 characters.

A computer's NetBIOS name must be unique within a network and is not fully qualified by the domain name.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0