IMetabaseObjectDescriptor.Dependencies

Syntax

Dependencies(FromSource: Boolean): IMetabaseObjectDescriptors;

Parameters

FromSource. Parameter determining for who the property will be calculated. This parameter is relevant for shortcuts. If the value is True, the property will return the description of objects on which the objects depends, to which the shortcut refers. If the value is False, the property will return the description of objects on which the shortcut depends.

Description

The Dependencies property returns a collection of descriptions of the objects on which the given object depends.

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

Example

Executing the example requires that the repository contains a time series database with the TSBD 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 from which the ""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 names and identifiers of the objects on which the specified object depends, are displayed in the development environment console.

See also:

IMetabaseObjectDescriptor

IMetabaseObjectDescriptor.FetchDependencies