Gets the
System.String value that indicates the name of the computer.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly Property ComputerName As String |
C# | |
---|
public static string ComputerName {get;} |
C++/CLI | |
---|
public:
static property String^ ComputerName {
String^ get();
} |
Property Value
A
System.String that indicates the name of the current computer.
Example
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also