Mono Class Library: System.Environment Overview | Members

System.Environment.UserName Property

Returns the user name the current process is running under.

public static string UserName { get; }

Value

The username of the account the current process is running under.

Remarks

This property identifies the username under which the current process is executing.

Requirements

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