IForeAssemblyBinary.GetMetadata

Syntax

GetMetadata: IXmlDomDocument;

Description

The GetMetadata method returns assembly metadata in XML format.

Comments

Metadata includes information about all structures implemented in the assembly, in links to other assemblies and other information that is required to provide a correct work with the assembly.

Example

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;
    
//Get assembly metadata
    AssmBin:= Runtime.ResolveAssembly("ASSM_TEST");
    //View metadata in XML format
    Debug.WriteLine(AssmBin.GetMetadata.xml);
End Sub UserProc;

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:

IForeAssemblyBinary