System.Windows.Forms.SystemInformation.ComputerName Property

Gets the NetBIOS computer name of the local computer.

Syntax

public static string ComputerName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SystemInformation.ComputerName property retrieves the NetBIOS name of the local computer. This is accomplished with a call into the native System Information function GetComputerName. This name is established at system startup, when the system reads it from the registry. If the local computer is a node in a cluster, SystemInformation.ComputerName returns the name of the cluster virtual server.

You can use the SystemInformation.ComputerName method to determine the name of the computer that is displayed to other users on a network.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0