利用银光当地资源
我需要知道我的 silver light 4 应用程序中是否可以选择使用本地资源以及是否有任何限制。我的意思是保存文件或从硬盘读取、连接本地 SQL Express、连接串行端口,... 有没有教程啊。 提前致谢 ...
I need to know if there is an option to use local resources in my silver light 4 application and if there any restrictions . I mean saving file or reading from hard drive , connecting local SQL express , connecting serial port , ...
Are there any tutorials .
Thanks in advance ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Silverlight 专门设计为不允许访问用户的计算机。
您只能通过
OpenFileDialog
或SaveFileDialog
访问用户的硬盘驱动器。使用此方法您将不知道文件的名称或路径。此外,这些对话框必须通过“用户生成的操作”显示,通常是单击按钮或其他一些 UI 交互。数据库、端口和几乎任何其他东西都是不允许的。
Silverlight is specifically designed to not allow access to the user's computer.
You can only access the user's hard drive through an
OpenFileDialog
or aSaveFileDialog
. You will not know the name or path of the file using this method. Additionally, these dialogs must be displayed by a "user generated action", which is typically a button click or some other UI interaction.Databases, ports, and pretty much anything else is not allowed.
您可以编辑独立存储中的项目。您可以创建项目/文件并在 Silverlight 应用程序中访问它们。
这是有关如何使用它的教程。
http://msdn.microsoft.com/en- us/library/bdts8hk0(v=vs.95).aspx
You are allowed to edit items in Isolated storage. You can create items/files and access them in your Silverlight app.
Here is tutorial on how to use it.
http://msdn.microsoft.com/en-us/library/bdts8hk0(v=vs.95).aspx