[英]using ActiveXObject in Winforms web browser Control
I'm using JavaScript code in c# web browser object (winform). 我在c#网络浏览器对象(winform)中使用JavaScript代码。 from some reason I cannot use ActiveXObject... the line: 由于某种原因,我无法使用ActiveXObject ...行:
var fso = new ActiveXObject("Scripting.FileSystemObject");
doesn't work. 不起作用。
The object in question is not marked Safe-For-Scripting because it exposes unsafe functionality to potentially untrusted content. 有问题的对象未标记为“安全脚本编写”,因为它向潜在的不受信任的内容公开了不安全的功能。
In order for such objects to run, you will need to attach a delegate security manager and return URL_POLICY_ALLOW for URLAction 0x1201. 为了使这些对象运行,您将需要附加一个委托安全管理器,并为URLAction 0x1201返回URL_POLICY_ALLOW。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.