IMetabaseUser.LastLoginStamp

Syntax

LastLoginStamp: DateTime;

Description

The LastLoginStamp property returns date of the last login.

Comments

Login date is changed in both cases: if login is successful and if it is failed (if the p4audit user is set correctly).

Example

To execute the example, make sure that security manager contains the USER user.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    User: IMetabaseUser;
Begin
    MB := MetabaseClass.Active;
    MS := MB.Security;
    User := MS.ResolveName(
"USER"As IMetabaseUser;
    Debug.WriteLine(User.LastLoginStamp);
End Sub UserProc;

After executing the example the console displays date and time of the last USER user login.

See also:

IMetabaseUser