IAuditFiltersContainer.Assign

Syntax

Assign(Value: IAuditFiltersContainer);

Parameters

Value. Container which filters must 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.

Add a link to the Metabase system assembly.

Sub UserProc;
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 UserProc;

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