Assign(Value: IAuditFilter);
Value is the access protocol filter.
The Assign method copies a filtering condition.
Executing the example requires the "C:\1.xml" file that contains a filter of access protocol.
Sub Main;
Var
FilCon: IAuditFiltersContainer;
FilObj: IAuditFilterObject;
AF: IAuditFilter;
Begin
FilCon := New AuditFiltersContainer.Create;
FilCon.LoadFromFile("C:\1.xml");
FilObj := FilCon.Filters.Add;
AF := FilObj.Filter;
FilObj.Filter.Assign(AF);
FilCon.SaveToFile(FilCon.FileName);
End Sub Main;
After executing the example the filter is added to the loaded file of access protocol filter. Then the filter file is saved.
See also: