IMetabaseObjectDescriptor.Dependents

Syntax

Dependents: IMetabaseObjectDescriptors;

Description

The Dependents property returns a collection of descriptions of the repository objects that depends on the given object.

Comments

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

Example

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.Dependents;

If MDescr.Count <> 0 Then

Debug.WriteLine("The following objects depend on ""MDM_1"":");

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, if any objects depend on the specified MDM repository, their names and identifiers are displayed in the development environment console.

See also:

IMetabaseObjectDescriptor

IMetabaseObjectDescriptor.FetchDependents