NET.unloadAssembly
Description
unloads a .NET Core assembly from MATLAB®. To unload an assembly, first set the asmInfo = NET.unloadAssembly(asm)Unloadable parameter
in NET.addAssembly to true. Then call the
NET.unloadAssembly function which removes the MATLAB class definitions for all .NET types defined in the assembly, unloads the
assembly from the .NET Runtime, and asynchronously removes the file lock on the assembly,
which is held by the MATLAB process, after garbage collection removes all references to the assembly. If
the assembly is not loaded in MATLAB, the function does nothing.
Note
Unloading a .NET Framework assembly is not supported.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a