HiddenReferences: Array;
The HiddenReferences property returns an array of hidden links.
If the current assembly calls the class method that is a part of class hierarchy, then for this assembly, hidden links to all assemblies containing all classes and interfaces of the hierarchy are added.
Executing the example requires that the repository contains an assembly with the ASSM_TEST identifier.
Add a link to the Fore, Metabase system assembly.
Sub UserProc;
Var
ForeService: IForeServices;
Runtime: IForeRuntime;
AssmBin: IForeAssemblyBinary;
s: String;
Begin
ForeService := MetabaseClass.Active As IForeServices;
Runtime := ForeService.GetRuntime;
//Get assembly metadata
AssmBin := Runtime.ResolveAssembly("ASSM_TEST");
Debug.WriteLine(AssmBin.HiddenReferences.Length);
For Each s In AssmBin.HiddenReferences Do
Debug.WriteLine("Assembly: " + s + ". Compile time: " + AssmBin.GetReferenceTimeStamp(s).ToString);
End For;
End Sub UserProc;
On executing the example the development environment console will display the list of assemblies to which there are hidden links in the specified assembly. Date and time of assemblies compilation will be also displayed.
See also: