Microsoft SDK for Java

SystemInformation.getUserName

Retrieves the user name for the current thread.

Syntax

public static final String getUserName()

Return Value

Returns a String object that represents the current user name.

Remarks

Use the getUserName method to obtain the name of the user currently logged on to the system.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.