Mono Class Library: Mono.Unix.UnixEnvironment Overview | Members

Mono.Unix.UnixEnvironment.UserName Property

Gets the user name of the user executing the process.

public static string UserName { get; }

Value

A string containing the username of the user executing the process.

Remarks

This is the username of the real user id.

This is equivalent to calling UnixEnvironment.RealUser.UnixUserInfo.UserName.

Requirements

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