利用银光当地资源

发布于 2025-01-01 03:32:54 字数 117 浏览 3 评论 0原文

我需要知道我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

很糊涂小朋友 2025-01-08 03:32:54

Silverlight 专门设计为不允许访问用户的计算机。

您只能通过OpenFileDialogSaveFileDialog 访问用户的硬盘驱动器。使用此方法您将不知道文件的名称或路径。此外,这些对话框必须通过“用户生成的操作”显示,通常是单击按钮或其他一些 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 a SaveFileDialog. 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.

荒芜了季节 2025-01-08 03:32:54

您可以编辑独立存储中的项目。您可以创建项目/文件并在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文