Skip to Main Content Skip to Search
Product Documentation

NET.addAssembly - Package: NET

Make .NET assembly visible to MATLAB

Syntax

asmInfo = NET.addAssembly(globalName)
asmInfo = NET.addAssembly(privateName)

Description

asmInfo = NET.addAssembly(globalName) loads a global .NET assembly into MATLAB.

asmInfo = NET.addAssembly(privateName) loads a private .NET assembly.

Tips

Input Arguments

globalName

One of the following:

  • String representing the name of a global assembly.

  • Instance of System.Reflection.AssemblyName class.

privateName

String representing the full path of a private assembly.

Output Arguments

asmInfo

NET.Assembly object containing names of the members of the assembly.

Examples

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

See Also

NET.Assembly

How To

Related Links

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS