IAuditFilterCondition.UserOS

Syntax

UserOS(Index: Integer): String;

UserOS[Index: integer]: string;

Parameters

Index. Position index. The number of OS users is defined by the IAuditFilterCondition.UserOSCount property.

Description

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

Example

Executing the example requires an access protocol filter with the FILTER identifier and the Ivanov and Petrov OS users.

Add a link to the Metabase system assembly.

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;
Public Shared Sub Main(Params: StartParams);
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;

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