IAuditFilterObjects.Item

Syntax

Item(Index: Integer): IAuditFilterObject;

Parameters

Index - index of the object in the collection.

Description

The Item property returns an object from collection by its index.

Example

Sub Main;

Var

FilCon: IAuditFiltersContainer;

Objs: IAuditFilterObjects;

Obj: IAuditFilterObject;

Begin

FilCon := New AuditFiltersContainer.Create;

FilCon.Load;

Objs := FilCon.Filters;

Obj := Objs.Item(0).Edit;

Obj.Description := "Description of a filter";

Obj.Save;

FilCon.SaveToFile("C:\Filter.xml");

End Sub Main;

After executing the example the description of the first filter of access protocol is changed. A container that contains this filter is saved in the file C:\Filter.xml.

See also:

IAuditFilterObjects