如何在.NET CF 3.5中使用UnmanagedFunctionPointerAttribute

时间:2013-09-13 17:02:11

标签: c# .net-cf-3.5

想知道是否有人在.NET CF 3.5程序中设法使用它。

我收到错误:“找不到类型或命名空间名称'UnmanagedFunctionPointerAttribute'(您是否缺少using指令或程序集引用?)”,尝试调试时。

这个类显然存在于InteropServices中,我已将其包含在违规文件中(“使用System.Runtime.InteropServices;”)。

感谢。

1 个答案:

答案 0 :(得分:1)

此属性在.NET CF 3.5中不可用:

http://msdn.microsoft.com/en-us/library/vstudio/system.runtime.interopservices.unmanagedfunctionpointerattribute%28v=vs.90%29.aspx

  

平台

     

Windows 7,Windows Vista,Windows XP SP2,Windows XP Media Center   版本,Windows XP Professional x64 Edition,Windows XP Starter   版本,Windows Server 2008 R2,Windows Server 2008,Windows Server   2003,Windows Server 2000 SP4,Windows Millennium Edition,Windows 98