IAuditOperations.Succeeded

Syntax

Succeeded: Boolean;

Description

The Succeeded property returns whether the operation execution succeeded.

Comments

The property returns True if operation was successfully executed and False if operation was disabled.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

AL: IAuditLog;

ALogon: IAuditLogons;

Operat: IAuditOperations;

s: String;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

Al:=MS.OpenAuditLog;

ALogon:= AL.OpenLogons(False);

ALogon.Next;

Operat:=Al.OpenOperations(ALogon.Session);

If Operat.Succeeded Then

s:="No";

Else

s:="Yes";

End If;

End Sub Main;

 

After executing the example the "s" variable contains "No", if the last operation wasn't disabled.

See also:

IAuditOperations