IAuditFilterObjects.Add

Syntax

Add: IAuditFilterObject;

Description

The Add method adds a new filter to the collection.

Example

Sub Main;

Var

FilCon: IAuditFiltersContainer;

Objs: IAuditFilterObjects;

Obj: IAuditFilterObject;

Begin

FilCon := New AuditFiltersContainer.Create;

FilCon.Load;

Objs := FilCon.Filters;

Obj := Objs.Add.Edit;

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

Obj.Save;

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

End Sub Main;

After executing the example new filter is added to the objects collection. The container, that stores the collection is saved to the file C:\Filter.xml.

See also:

IAuditFilterObjects