getUser()
The method returns the user with the specified user ID.
Synopsis
public shared_ptr<UserManagementUser> getUser(long id) synchronized (instance);
Parameter | Description |
---|---|
id | The user ID of the user that is returned. |
Return Value
The user with the specified user ID.
Errors
Errors are shown in the log viewer.
EXAMPLE
#uses "classes/userManagement/UserManagement"
main()
{
shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
shared_ptr<UserManagementUser> usr;
long userID = 0;
usr = userMgm.getUser(userID);
/* Returns the user with the user ID 0 */
DebugN("The user with the ID 0 is:", usr.getName());
}
Assignment
See also