IForeRuntime.ForeObjectsGraph

Syntax

ForeObjectsGraph: IForeObjectsGraph;

ForeObjectsGraph: Prognoz.Platform.Interop.Fore.IForeObjectsGraph;

Description

The ForeObjectsGraph property returns access to objects graph in memory.

Comments

The graph enables getting the list of objects in memory and links between them.

Example

Add a link to the Fore system assembly.

Sub UserProc;
Var
    Mb: IMetabase;
    Runtime: IForeRuntime;
    Graph: IForeObjectsGraph;
    
//...
Begin
    Mb := MetabaseClass.Active;
    
//...
    // Executable application code
    //...
    Runtime := (Mb As IForeServices).GetRuntime;
    Graph := Runtime.ForeObjectsGraph;
    Graph.ObjectIndexing := 
True;
    Graph.SaveToFile(
"D:\CurrentObjects.tgf");
    
//...
    // Continuation of application code
    //...
End Sub UserProc;

Imports Prognoz.Platform.Interop.Fore;

Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    Runtime: IForeRuntime;
    Graph: IForeObjectsGraph;
    
//...
Begin
    Mb := Params.Metabase;
    
//...
    // Executable application code
    //...
    Runtime := (Mb As IForeServices).GetRuntime();
    Graph := Runtime.ForeObjectsGraph;
    Graph.ObjectIndexing := 
True;
    Graph.SaveToFile(
"D:\CurrentObjects.tgf");
    
//...
    // Continuation of application code
    //...
End Sub;

The specified example displays how get and save graph of objects in memory to the file in the application code.

See also:

IForeRuntime