| Contents | Index |
Make .NET assembly visible to MATLAB
asmInfo = NET.addAssembly(globalName)
asmInfo = NET.addAssembly(privateName)
asmInfo = NET.addAssembly(globalName) loads a global .NET assembly into MATLAB.
asmInfo = NET.addAssembly(privateName) loads a private .NET assembly.
MATLAB dynamically loads the mscorlib.dll and system.dll assemblies from the .NET Framework class library the first time you type "NET." or "System.". You do not need to call NET.addAssembly to access classes in these assemblies.
Refer to your .NET product documentation for the name of the assembly and its deployment type (global or private).
asmInfo |
NET.Assembly object containing names of the members of the assembly. |
Display today's date using System.DateTime in the mscorlib assembly.
System.DateTime.Now.ToLongDateString
Call the System.Windows.Forms.MessageBox.Show method in the global assembly System.Windows.Forms.
asm = NET.addAssembly('System.Windows.Forms');
import System.Windows.Forms.*;
MessageBox.Show('Simple Message Box')Display classes in the private assembly NetSample.dll.
asm = NET.addAssembly('c:\work\NetSample.dll');
asm.Classes| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |