SaveExternal(FileName: String);
FileName is a path and a name of the file, that is used to save DLL file, corresponding to the external assembly.
The SaveExternal method saves the file of external assembly to a disk.
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: