IAuditFilterCondition.UserOS

Syntax

UserOS(Index: Integer): String;

Parameters

Index — index of a position. The UserOSCount property determines the number of users of OS.

Description

The UserOS property determines name of a user of operation system for whom records of a protocol are displayed.

Example

Sub UserProc;

Var

FilCon: IAuditFiltersContainer;

Objs: IAuditFilterObjects;

Obj: IAuditFilterObject;

Con: IAuditFilterCondition;

Fil: IAuditFilter;

Begin

FilCon := New AuditFiltersContainer.Create;

FilCon.Load;

Objs := FilCon.Filters;

Obj := Objs.FindById("FILTER").Edit;

Fil := Obj.Filter;

Con := Fil.Item(0);

Con.UserOSCount:= 2;

Con.UserOS(0) := "Ivanov";

Con.UserOS(1) := "Petrov";

Obj.Save;

FilCon.SaveToFile(FilCon.DefaultFileName);

End Sub UserProc;

After executing this example the property of filter condition is changed: show records of access protocol only for specified users of OS.

See also:

IAuditFilterCondition