本文介绍了从呼叫到Beep的MethodAccessException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

迈克尔,您好,我正在尝试您的文章/测试代码如何在Silverlight 5中使用PInvoke
",但按照指示进行操作后,在VS调试模式下,程序将在调用Beep时停止,提示必须严格安全性或对安全性至关重要,才能调用本机代码...".如何提供正确的安全性? ..从浏览器中,我很高兴听到哔哔声.

Hi Michael, I was trying out your article/test code "How to use PInvoke in Silverlight 5
", but after follwoing your directions, in VS debug mode, the program stops at the call to Beep with "must be security critical or security-safe critical to call native code"... so how do I provide the correct security? ...from the browser, I obvoiusly get not beep. Thanks

推荐答案


这篇关于从呼叫到Beep的MethodAccessException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 03:01