IMetabaseObjectDescriptors.Clear

Syntax

Clear;

Clear();

Description

The Clear method clears the collection.

Comments

In the following implementation this method is available only for the manipulation of the collection of objectsnbsp;that are copied with the time series database.

Example

Executing the example requires that the repository contains a replication object with the CUBE_META_UPD identifier.

Add links to the Cubes, Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    u: ICubeMetaUpdateEx;
    ObjectsFilter: IMetabaseObjectDescriptors;
Begin
    Mb := MetabaseClass.Active;
    u := Mb.ItemById("CUBE_META_UPD").Edit As ICubeMetaUpdateEx;
    ObjectsFilter := u.ObjectsFilter;
    If ObjectsFilter.Count > 0 Then
    ObjectsFilter.Clear;
    End If;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Cubes;
 
Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    u: ICubeMetaUpdateEx;
    ObjectsFilter: IMetabaseObjectDescriptors;
Begin
    Mb := Params.Metabase;
    u := Mb.ItemById[
"CUBE_META_UPD"].Edit() As ICubeMetaUpdateEx;
    ObjectsFilter := u.ObjectsFilter;
    
If ObjectsFilter.Count > 0 Then
    ObjectsFilter.Clear();
    
End If;
End Sub;

After executing the example, the collection of nested objects of the time series database that are to be copied, is cleared in the replication object.

See also:

IMetabaseObjectDescriptors