关于异常的疑难解答:System.Runtime.InteropServices.MarshalDirectiveException

当封送拆收器遇到它不支持的 MarshalAsAttribute 时由该封送拆收器引发的异常。

请参见

任务

如何:使用异常助手

参考

MarshalDirectiveException

概念

Using the MarshalAsAttribute Attribute