Exemplo n.º 1
0
 /// <summary>
 /// 获取支持的国内外城市或地区信息
 /// </summary>
 /// <param name="provinceName">指定的洲或国内的省份,若为ALL或空则表示返回全部城市</param>
 /// <returns>支持的国内外城市或地区信息或NULL</returns>
 public static string[] GetSupportCity(string provinceName = "ALL")
 {
     try
     {
         if (!string.IsNullOrEmpty(provinceName))
         {
             cn.com.webxml.www.WeatherWebService weather = new cn.com.webxml.www.WeatherWebService();
             return(weather.getSupportCity(provinceName));
         }
         return(null);
     }
     catch
     {
         return(null);
     }
 }