SystemInfo HostName Property | Apache log4net™ SDK Documentation

Get the host name or machine name for the current machine

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static string HostName { get; }

    Public Shared ReadOnly Property HostName As String
    	Get

    public:
    static property String^ HostName {
    	String^ get ();
    }

    static member HostName : string with get

#### Property Value

Type: String
The hostname or machine name
Remarks

Get the host name or machine name for the current machine

The host name (GetHostName
) or the machine name (Environment.MachineName) for the current machine, or if neither of these are available then NOT AVAILABLE is returned.

See Also

#### Reference

SystemInfo Class
log4net.Util Namespace