IAuditFilter.Assign

Syntax

Assign(Value: IAuditFilter);

Assign(Value: Prognoz.Platform.Interop.Metabase.IAuditFilter);

Parameters

Value. Access protocol filter.

Description

The Assign method copies a filtering condition.

Example

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

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    FilCon: IAuditFiltersContainer;
    FilObj: IAuditFilterObject;
    AF: IAuditFilter;
Begin
    FilCon := 
New AuditFiltersContainer.Create;
    FilCon.LoadFromFile(
"C:\1.xml");
    FilObj := FilCon.Filters.Add;
    FilObj.Filter.Assign(AF);
    FilCon.SaveToFile(FilCon.FileName);
End Sub UserProc;

Public Shared Sub Main(Params: StartParams);
Var
    FilCon: IAuditFiltersContainer;
    FilObj: IAuditFilterObject;
    AF: IAuditFilter;
Begin
    FilCon := New AuditFiltersContainer.Create();
    FilCon.LoadFromFile("C:\1.xml");
    FilObj := FilCon.Filters.Add();
    FilObj.Filter.Assign(AF);
    FilCon.SaveToFile(FilCon.FileName);
End Sub;

After executing the example the filter is added to the loaded file of access protocol filter. Then the filter file is saved.

See also:

IAuditFilter