SuperMap.Connector.Map.GetMapNames C# (CSharp) Method

GetMapNames() public method

获取指定服务中的所有的地图名称。
public GetMapNames ( ) : List
return List
        public List<string> GetMapNames()
        {
            return _mapProvider.GetMapNames();
        }

Same methods

Map::GetMapNames ( EventHandler completed, EventHandler failed ) : void

Usage Example

コード例 #1
0
 private void btnCheck_Click(object sender, EventArgs e)
 {
     try
     {
         Map map = new Map(this.tbUrl.Text);
         List<string> mapNames = map.GetMapNames();
         if (mapNames != null && mapNames.Count > 0)
         {
             this.cbnMapNames.Items.Clear();
             foreach(string mapName in mapNames)
             {
                 this.cbnMapNames.Items.Add(mapName);
             }
             this.cbnMapNames.SelectedIndex = 0;
             this.btnOk.Enabled = true;
         }
     }
     catch (ArgumentNullException argumengNullException)
     {
         MessageBox.Show(argumengNullException.Message);
     }
     catch (ServiceException serviceException)
     {
         MessageBox.Show(serviceException.Message);
     }
 }
All Usage Examples Of SuperMap.Connector.Map::GetMapNames