windows phone之获取当前连接WIFI的SSID

public string GetSSIDName()
{
    foreach (var network in new NetworkInterfaceList())
    {
        if (
            (network.InterfaceType == NetworkInterfaceType.Wireless80211) &&
            (network.InterfaceState == ConnectState.Connected)
            )
        {
            return network.InterfaceName;
        }
    }
    return "<Not connected>";
}

posted @ 2014-04-03 16:29  金靴欧文  阅读(243)  评论(0编辑  收藏  举报