IMetabaseObjectDescriptor.LoadChildScreenshots

Syntax

LoadChildScreenshots(Type: ScreenshotType);

Parameters

Type. Image type where cashing is executed.

Description

The LoadChildScreenshots method caches images used on preview for child objects of the specified object.

Comments

The method is relevant for use if the IMetabase.IsScreenshotSupported property returns True.

Unlike the LoadAllChildrenScreenshots method, the LoadChildScreenshots method caches images of child objects of the current object, and one can set type of cached images in the Type parameter.

Examples

Executing the example requires that the repository contains a folder with the REPORTS_FOLDER identifier. The folder stores various reports.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    If MB.IsScreenshotSupported Then
        MDesc := MB.ItemById("REPORTS_FOLDER");
        MDesc.LoadChildScreenshots(ScreenshotType.Default_);
    End If;
End Sub UserProc;

After executing the example, if object displaying as icons without taking into account access permissions is enabled in the repository, thumbnails of objects from the specified folder will be saved to local cache in the current computer.

See also:

IMetabaseObjectDescriptor