IAuditFilterCondition.UserIP

Syntax

UserIP(Index: Integer): String;

Parameters

Index. Position index. The number of IP addresses is defined by the IAuditFilterCondition.UserIPCount property.

Description

The UserIP property determines name of IP-address of a workstation for which records of a protocol are displayed.

Example

Executing the example requires an access protocol filter wit the FILTER identifier and users wit the IP address 10.0.0.5 and 10.0.0.100.

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.UserIPCount := 2;
    Con.UserIP(0) := "10.0.0.5";
    Con.UserIP(1) := "10.0.0.100";
    Obj.Save;
    FilCon.SaveToFile(FilCon.DefaultFileName);
End Sub UserProc;

After executing the example the property of filter condition is changed: show records of access protocol only for stations with specified IP-address.

See also:

IAuditFilterCondition