Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

Microsoft .NET 快速入门

有助于您迅速地在 MATLAB® 中开始使用 .NET 的示例和概念

.NET 接口允许您将 .NET 程序集引入 MATLAB 环境中,从这些程序集中包含的类来构造对象,以及对这些对象调用方法。

MATLAB 仅在 Microsoft® Windows® 平台上支持加载为 .NET 5 和更高版本、.NET Core 以及 Microsoft .NET Framework 编译的库。有关详细信息,请参阅System Requirements for Using MATLAB Interface to .NET。有关与 MATLAB 兼容的 .NET 版本的信息,请参阅其他语言的 MATLAB 接口

要确定您的系统是否具有支持的版本,请使用 NET.isNETSupported 函数。

函数

NET.addAssembly将 .NET 程序集添加至 MATLAB
NET.isNETSupported检查支持的 Microsoft .NET 版本
NET.interfaceViewExplicit interface view of .NET object (自 R2023b 起)
NETMATLAB .NET 接口函数摘要
enableNETfromNetworkDrive(将删除)支持从网络驱动器访问 .NET 命令

NET.Assembly.NET 程序集成员

对象

NET.NetException捕获 .NET 异常的错误信息

主题

疑难解答

Troubleshooting Security Policy Settings from Network Drives

For MATLAB releases R2012b or earlier, call the enableNETfromNetworkDrive function to create a MATLAB security policy entry.

Limitations to .NET Support

.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.