public TrafficTransferAnalyst ( string serviceUrl ) : System | ||
serviceUrl | string | SuperMap iServer 地图服务组件的URL地址。 |
return | System |
public TrafficTransferAnalyst(string serviceUrl)
{
if (string.IsNullOrEmpty(serviceUrl))
{
throw new ArgumentNullException("serviceUrl", "serivceUrl is null");
}
if (serviceUrl.Trim().EndsWith("/"))
{
int lastLocation = serviceUrl.LastIndexOf("/");
if (lastLocation >= 0)
{
serviceUrl = serviceUrl.Substring(0, lastLocation);
}
}
this._serviceUrl = serviceUrl;
this._trafficTransferAnalystProvider = new TrafficTransferAnalystProvider(this._serviceUrl);
}