GetMetadata: IXmlDomDocument;
GetMetadata: Prognoz.Platform.Interop.MsXml2.IXmlDomDocument;
The GetMetadata method returns assembly metadata in XML format.
Metadata includes information about all constructions implemented in assembly, in links to other assemblies and other information that is required to provide a correct work with assembly.
Executing the example requires that 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;
Begin
ForeService := MetabaseClass.Active As IForeServices;
Runtime := ForeService.GetRuntime;
//Load assembly
AssmBin:= Runtime.LoadAssembly("ASSM_TEST");
//View metadata in XML format
Debug.WriteLine(AssmBin.GetMetadata.xml);
End Sub UserProc;
Imports Prognoz.Platform.Interop.Fore;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
ForeService: IForeServices;
Runtime: IForeRuntime;
AssmBin: IForeAssemblyBinary;
Begin
ForeService := Params.Metabase As IForeServices;
Runtime := ForeService.GetRuntime();
//Load assembly
AssmBin := Runtime.LoadAssembly("ASSM_TEST");
//View metadata in XML format
System.Diagnostics.Debug.WriteLine(AssmBin.GetMetadata().xml);
End Sub;
On executing the example, the repository assembly with the specified identifier will be loaded to the execution environment. The development environment console will display assembly metadata in XML format.
See also: