IAuditFiltersContainer.Assign

Syntax

Assign(Value: IAuditFiltersContainer);

Parameters

Value is a container, which filters have to be copied.

Description

The Assign method copies the container.

Example

Executing the example requires the file "C:\Filter.xml" that contains a filter of access protocol.

Sub Main;

Var

FilCon, FilConDef: IAuditFiltersContainer;

Begin

FilCon := New AuditFiltersContainer.Create;

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

FilConDef := New AuditFiltersContainer.Create;

FilConDef.Assign(FilCon);

FilConDef.SaveToFile("C:\Copy.xml");

End Sub Main;

After executing the example the FilCon container is copied to the FilConDef container. The FilConDef container is saved to the C:\Copy.xml file.

See also:

IAuditFiltersContainer