我可以用Silverlight做什么? [英] What can I do with Silverlight?

查看:117
本文介绍了我可以用Silverlight做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们! 

Hi folks! 

我想知道我是否可以使用silverlight获取以下数据:

I would like to know if I can get the following  data using silverlight:


  • 用户名
  • 总内存
  • 免费内存
  • 设备类型(即三星,戴尔等)
  • 模型设备(即戴尔Latitude等)。
  • 计算机名称

我必须使用C#。 

I have to use C#. 

如果答案不是,我也想要...

If the answer is not I also would like the reason why...

非常感谢提前!

推荐答案



嗨caizo,


Hi caizo,

来自您的描述,您希望在使用Silverlight时获得更多系统信息。

From your description, you want to get more system information when you are using Silverlight.

据我所知,Silverlight在一定范围的权限下运行。因此无法访问所有信息。

As far as I know, Silverlight is run in a certain range of permissions. So it is not possible to access all the information.

因此,您可以尝试以下方式。

So, you may try the following way.

1。使您的Silverlight应用启用选项提升信任。它将允许使用COM。

1. Make your Silverlight app enable option elevated trust. It will allow using COM.

Silverlight 4:COM Interop..Endless Opportunities:

http://pendsevikram.blogspot.sg/2010/01/silverlight-4-com-interopendless.html

Silverlight 4 : COM Interop..Endless Opportunities:
http://pendsevikram.blogspot.sg/2010/01/silverlight-4-com-interopendless.html

Silverlight 4 COM Automation - 使用Windows Image Acquisition通过DSLR拍照:

http://sblakemore.com/blog/post/Silverlight-4-COM-Automation-e28093-Taking-photos- with-a-DSLR-using-Windows-Image-Acquisition.aspx

Silverlight 4 COM Automation – Taking photos with a DSLR using Windows Image Acquisition:
http://sblakemore.com/blog/post/Silverlight-4-COM-Automation-e28093-Taking-photos-with-a-DSLR-using-Windows-Image-Acquisition.aspx

2。添加一些系统库并导入所需的功能,以便获取RAM等信息

2. Add some system library and import required functions that will allow you to get RAM etc. info

如何获得计算机的总RAM数量?

< a href ="https://stackoverflow.com/questions/105031/how-do-you-get-total-amount-of-ram-the-computer-has"> https://stackoverflow.com/questions/105031 /你如何获得计算机内存总量

How do you get total amount of RAM the computer has?
https://stackoverflow.com/questions/105031/how-do-you-get-total-amount-of-ram-the-computer-has

注意:此响应包含对全球第三方的引用网站。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站,也未测试在这些网站上找到的任何软件或信息;因此,
Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何软件都存在固有的危险,微软提醒您在从互联网上检索任何软件之前,确保您完全了解风险.b $ b。

Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

最好的问候,

Yohann Lu

Yohann Lu


这篇关于我可以用Silverlight做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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