开发者

What are same *hidden* useful bits of information you can get from the client in Silverlight 3?

I'm wondering whether you can get the client's machine name. I guess you cannot.

Its interesting what you can get in the System.Window开发者_运维百科s.Application namespace.

I guess hidden is not the right word, more like "less-used" or unknowns. For example I use the one below to get the current URL

var hostName = Application.Current.Host.Source.Host;

I'd love to see what other devs out there are getting and using.

Thanks


No you can't acquire the client's machine name. Silverlight doesn't allow you to get to any such data. There is nothing about the client environment that you find out through silverlight that you can't already find from the browsers window object.


That is a very broad question, but one class that you might be interested in is System.Windows.Analytics which can be used to get performance related information from the Client.

Also HtmlPage.BrowserInformation returns a BrowserInformation instance which contains data about the client's browser (really a managed wrapper for some javascript functions).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜