Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.GetHostName Method

Retrieves the hostname. [Edit]

public static string GetHostName ()

See Also

Mono.Unix.UnixEnvironment.MachineName
Mono.Unix.Native.Syscall.gethostname

Returns

a string [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.UnixEnvironment.MachineName instead.

Either GetHostName() should be removed, since gethostname() also exists, or the entire library should be CamelCased per .NET standard.

[Edit]

Requirements

Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0