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

ClearCache() public method

清除指定地图范围的缓存。
public ClearCache ( string mapName, Rectangle2D bounds ) : bool
mapName string 地图名称。
bounds Rectangle2D 地图范围。
return bool
        public bool ClearCache(string mapName, Rectangle2D bounds)
        {
            return _mapProvider.ClearCache(mapName, bounds);
        }
    }

Usage Example

コード例 #1
0
 public void ClearCache_NoBounds()
 {
     Map map = new Map("http://" + ip + ":8090/iserver/services/map-world/rest");
     try
     {
         bool succeed = map.ClearCache("世界地图", null);
     }
     catch (ArgumentNullException e)
     {
         Assert.IsTrue(string.Equals("bounds", e.ParamName));
     }
 }
All Usage Examples Of SuperMap.Connector.Map::ClearCache