Can Silverlight access a .Net library that accesses a USB port?
We have a .Ne开发者_开发问答t library that accesses some custom hardware via a USB port. I've read that Silverlight contains a subset of the .Net runtime. So, my question is, would this subset be sufficient for the .Net library to function?
No, you cannot use a .NET library that accesses a USB port from inside Silverlight.
The closest you can get is an SL4 Out-of-browser app with elevated privs which can use COM components.
YES YOU COULD
an update only for people like me that founds this question, here the answer:
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/09/27/pinvoke-in-silverlight5-and-net-framework.aspx
精彩评论