Introducción a Microsoft .NET
La interacción con .NET permite introducir conjuntos de .NET en el entorno de MATLAB, construir objetos a partir de las clases contenidas en los conjuntos y llamar a métodos de estos objetos.
MATLAB admite cargar bibliotecas compiladas para .NET, incluido .NET Core, y Microsoft® .NET Framework solo en la plataforma Microsoft Windows®. Para obtener más detalles, consulte System Requirements for Using MATLAB Interface to .NET. Para obtener información acerca de las versiones de .NET compatibles con MATLAB, consulte Interfaces de MATLAB a otros lenguajes.
Para determinar si el sistema tiene una versión compatible, utilice la función NET.isNETSupported
.
Funciones
NET.addAssembly | Make .NET assembly visible to MATLAB |
NET.isNETSupported | Check for supported version of Microsoft .NET |
NET.interfaceView | Explicit interface view of .NET object (desde R2023b) |
NET | Summary of functions in MATLAB .NET interface |
enableNETfromNetworkDrive | (To be removed) Enable access to .NET commands from network drive |
Clases
NET.Assembly | Members of .NET assembly |
Objetos
NET.NetException | Capture error information for .NET exception |
Temas
- System Requirements for Using MATLAB Interface to .NET
Using a supported version of .NET.
- Access a Simple .NET Class
This example shows how to access .NET functionality already installed on your system.
- Work with Microsoft Excel Spreadsheets Using .NET
This example for Microsoft .NET Framework uses the
Microsoft.Office.Interop.Excel.ApplicationClass
class to create a spreadsheet, copy MATLAB data to it, and then close it. - Work with Microsoft Word Documents Using .NET
This example for Microsoft .NET Framework uses the
Microsoft.Office.Interop.Word.ApplicationClass
class to create a Word document. - Build a .NET Application for MATLAB Examples
Basic information for building the .NET examples included with MATLAB.
- Simplify .NET Class Names
Use the MATLAB
import
function to refer to .NET class names. - Utilizar import en funciones de MATLAB
Directrices para usar las funciones
NET.addAssembly
eimport
. - Use .NET Nested Classes
Using reflection to instantiate a nested class.
- Handle .NET Exceptions
MATLAB catches exceptions thrown by .NET and converts them into a
NET.NetException
object. - Assembly Is a Library of .NET Classes
An assembly is a collection of types and resources built to work together and form a logical unit of functionality in .NET applications.
- Using .NET from MATLAB
How you can benefit from using .NET from MATLAB.
- Using a .NET Object
How to create a .NET object.
- .NET Terminology
Understanding namespaces and reference and value types.
Solución de problemas
Troubleshooting Security Policy Settings from Network Drives
For MATLAB releases R2012b or earlier, call the
enableNETfromNetworkDrive
function to create a
MATLAB security policy entry.
.NET features not supported in MATLAB.
Limitations to Support of .NET Arrays
.NET features not supported in MATLAB.
Limitations to Support of .NET Methods
.NET features not supported in MATLAB.
Limitations to Support of .NET Events
.NET features not supported in MATLAB.
Limitations to Support of .NET Delegates
.NET features not supported in MATLAB.
Limitations to Support of .NET Enumerations
.NET features not supported in MATLAB.