IAuditFilterObjects.Count

Syntax

Count: Integer;

Count: integer;

Description

The Count property returns the number of objects in collection.

Example

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    FilCon: IAuditFiltersContainer;
    Objs: IAuditFilterObjects;
Begin
    FilCon := New AuditFiltersContainer.Create;
    FilCon.Load;
    Objs := FilCon.Filters;
    Debug.WriteLine(Objs.Count);
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    FilCon: IAuditFiltersContainer;
    Objs: IAuditFilterObjects;
Begin
    FilCon := New AuditFiltersContainer.Create();
    FilCon.Load();
    Objs := FilCon.Filters;
    System.Diagnostics.Debug.WriteLine(Objs.Count);
End Sub;

After executing the example the number of filters, that are stored in the container loaded from file by default, are displayed in console window.

See also:

IAuditFilterObjects