IForeNETAssembly.References

Syntax

References: IForeNETAssemblyReferences;

Description

The References property returns the collection of links to repository .NET assemblies.

Example

Executing this example requires that the repository contains a .NET assembly with the NETAssembly_1 identifier.

Sub UserProc;
Var
    MB: IMetabase;
    NETAssembly: IForeNETAssembly;
    References: IForeNETAssemblyReferences;
    Reference: IForeNETAssemblyReference;
Begin
    MB := MetabaseClass.Active;
    NETAssembly := MB.ItemById("NETAssembly_1").Bind As IForeNETAssembly;
    References := NETAssembly.References;
    For Each Reference In References Do
        Debug.WriteLine("Identifier: " + Reference.Id + "; Name:" + Reference.Name);
    End For;
End Sub UserProc;

After executing this example, the list of names and identifiers of .NET assemblies, that are referenced in specified .NET assembly, is displayed in the development environment console.

See also:

IForeNETAssembly