IMetabaseObjectDescriptor.Dependencies

Syntax

Dependencies(FromSource: Boolean): IMetabaseObjectDescriptors;

Parameters

FromSource. The parameter that determines, for whom the property will be calculated.

Description

The Dependencies property returns the collection of descriptions of the objects, on which this object depends.

Comments

The property returns an empty collection if the object does not depend on any repository object.

The FromSource parameter is relevant for shortcuts. If the value is True, the property will return the description of objects, on which the object depends, to which the shortcut refers. If the value is False, the property will return the description of objects, on which the shortcut depends.

Example

Executing the example requires that the repository contains a time series database with the TSDB identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
    MDescr: IMetabaseObjectDescriptors;
Begin
    MB := MetabaseClass.Active;
    MDesc := Mb.ItemById("TSDB");
    MDescr := MDesc.Dependencies(True);
    If MDescr.Count <> 0 Then
        Debug.WriteLine("Objects, on which ""TSDB"" depends:");
        For Each MDesc In MDescr Do
            Debug.WriteLine("Name :" + MDesc.Name + "; Identifier: " + MDesc.Id);
        End For;
    End If;
End Sub UserProc;

After executing the example the development environment console displays the names and identifiers of the objects, on which the specified object depends.

See also:

IMetabaseObjectDescriptor | IMetabaseObjectDescriptor.FetchDependencies