Dependencies(FromSource: Boolean): IMetabaseObjectDescriptors;
FromSource - a parameter that determines for whom 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.
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.
Executing the example requires an MDM repository with the MDM_1 identifier.
Sub Main;
Var
MB: IMetabase;
MDesc: IMetabaseObjectDescriptor;
MDescr: IMetabaseObjectDescriptors;
Begin
MB := MetabaseClass.Active;
MDesc := Mb.ItemById("RDS_1");
MDescr := MDesc.Dependencies(True);
If MDescr.Count <> 0 Then
Debug.WriteLine("Objects on which ""MDM_1"" depends:");
For Each MDesc In MDescr Do
Debug.WriteLine("Name :" + MDesc.Name + "; Identifier: " + MDesc.Id);
End For;
End If;
End Sub Main;
After executing this example the names and identifiers of the objects on which the specified MDM repository depends, are displayed in the development environment console.
See also: