简体   繁体   中英

Accessing IIS site information in Silverlight

I need to get the site name and port number of the IIS sites in the Silverlight Application. How to get that?

You should be able to get this info from Application.Current.Host.Source

 string server = Application.Current.Host.Source.Host;
 int port = Application.Current.Host.Source.Port;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM