IAuditFiltersContainer.Append

Syntax

Append(Value: IAuditFiltersContainer);

Append(Value: Prognoz.Platform.Interop.Metabase.IAuditFiltersContainer);

Parameters

Value. Container which filters must be added.

Description

The Append method adds new filters to the container.

Example

Executing the example requires the C:\Filter.xml file containing access protocol filter and the C:\Copy.xml file.

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.Load;
    FilCon.Append(FilConDef);
    FilCon.SaveToFile("C:\Copy.xml");
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    FilCon: IAuditFiltersContainer;
    FilConDef: AuditFiltersContainer;
Begin
    FilCon := New AuditFiltersContainer.Create();
    FilCon.LoadFromFile("C:\Filter.xml");
    FilConDef := New AuditFiltersContainer.Create();
    FilConDef.Load();
    FilCon.Append(FilConDef);
    FilCon.SaveToFile("C:\Copy.xml");
End Sub;

After executing the example filters from the FilConDef container are added to the FilCon container. The FilCon container is saved to the file C:\Copy.xml.

See also:

IAuditFiltersContainer