ParentAssembly: IMetabaseObjectDescriptor;
The ParentAssembly property returns description of the parent assembly.
If a module/form is included in any assembly the Standalone property returns False and in this property there is a possibility to get a description of parent assembly. If a module/form is not included in any assembly they implement temporary assembly. Its parameters are available in the Assembly property.
Executing the example requires that the repository contains a module with the TestModule identifier.
Sub Main;
Var
MB: IMetabase;
Module: IModule;
Begin
MB := MetabaseClass.Active;
Module := MB.ItemById("TestModule").Bind As IModule;
If Not Module.Standalone Then
Debug.WriteLine("Parent assembly: " + Module.ParentAssembly.Id);
Debug.WriteLine("References of parent assembly: " + (Module.ParentAssembly.Bind As IAssembly).References);
Else
Debug.WriteLine("Module is not included in any repository assembly");
Debug.WriteLine("Module references: " + Module.Assembly.References);
End If;
End Sub Main;
After executing this example the development environment console displays information about module is displayed: parent assembly existence and connected assemblies.
See also: