如何在 Silverlight 中访问本地文件系统 [英] How to Access the Local File System in Silverlight

查看:64
本文介绍了如何在 Silverlight 中访问本地文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Silverlight 无法访问本地系统文件,因此我们无法对此类文件执行任何操作,例如复制、移动、删除、打开等.

As silverlight do not have access to local system files, we cannot perform any action on such files like to copy, move, delete, open ect.

就我而言,我想获取位于本地系统上的文件路径,但遇到一些安全异常.请建议一些可能的方法来访问本地文件系统.

In my case i want to get the path of file(s) located on local System, but getting some security exception. Please suggest some possible way to get access to the Local File System.

提前致谢!!

推荐答案

如果您不是在具有提升信任度的浏览器之外运行,那么出于安全原因,您将被禁止访问此信息.

If you're not running out-of-browser with elevated trust, then you're prohibited from accessing this information for security reasons.

http://social.msdn.microsoft.com/Forums/silverlight/en-US/da778e7c-e790-4bb2-92b8-cea815789d22/silverlight-4-local-filesystem-access?forum=银光网

这篇关于如何在 Silverlight 中访问本地文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆