IForeNETAssembly.SaveExternal

Syntax

SaveExternal(FileName: String);

Parameters

FileName is a path and a name of the file, that is used to save DLL file, corresponding to the external assembly.

Description

The SaveExternal method saves the file of external assembly to a disk.

Example

Executing this example requires a .NET assembly with the ExtAssembly identifier. This .NET assembly corresponds to external assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    NETAssembly: IForeNETAssembly;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("ExtAssembly").Bind;
    NETAssembly := MObj As IForeNETAssembly;
    If NETAssembly.IsExternal Then
        NETAssembly.SaveExternal("c:\" + MObj.Name + ".dll");
    End If;
End Sub UserProc;

After executing the example, DLL file, that contains external assembly corresponding to .NET assembly of ExtAssembly repository, is saved in the root of disk C.

See also:

IForeNETAssembly