IMetabaseUser.LastLoginStamp

Fore Syntax

LastLoginStamp: DateTime;

Fore.NET Syntax

LastLoginStamp: System.DateTime;

Description

The LastLoginStamp property returns date of the last login.

Comments

Login date is changed if the login is successful or failed (if the p4audit user was set correctly).

Fore Example

There is the USER_TEST user among the security subjects that were created in the security manager of the current repository.

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    mb: IMetabase;
    se: IMetabaseSecurity;
    mbu: IMetabaseUser;
Begin
    mb := MetabaseClass.Active;
    se := mb.Security;
    mbu := se.ResolveName("USER_TEST"As IMetabaseUser;
    Debug.WriteLine(mbu.LastLoginStamp);
End Sub UserProc;

After executing this example the date of the last login of the "USER_TEST" is displayed in the console window.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    se: IMetabaseSecurity;
    mbu: IMetabaseUser;
Begin
    mb := Params.Metabase;
    se := mb.Security;
    mbu := se.ResolveName("USER_TEST"As IMetabaseUser;
    System.Diagnostics.Debug.WriteLine(mbu.LastLoginStamp);
End Sub;

See also:

IMetabaseUser