IAuditLog.CountOperations

Syntax

CountOperations([Session: Integer = -1]; [Operation: Integer = -1]): Integer;

Parameters

Session — It determines a session within which the number of records in the access protocol should be determined. "IAuditLogons.Session" or "IAuditOperations.Session" can be used as a value.

Optional parameter. "-1" is a value by default (all sessions).

Operation — It determines operation, the number of records of which should be determined in the access protocol. "IAuditOperations.Operation" can be used as a value.

Optional parameter. "-1" is a value by default (all operations).

Description

The CountOperations method returns the number of records about the operations in the repository in the access protocol.

Comments

If the Session andOperation parameters that are not obligatory, were set, the number of records taking into account the values of this parameters are returned.

Example

Sub Main;

Var

MB: IMetabase;

Se: IMetabaseSecurity;

ALog: IAuditLog;

Count: Integer;

Begin

MB := IMetabase.Active;

Se := MB.Security;

ALog := Se.OpenAuditLog;

Count := ALog.CountOperations;

End Sub Main;

After executing this example the Count variable contains the number of records in the access protocol about operations in the repository.

See also:

IAuditLog