${IS6_DeleteEntityParameters_Title}

${IS6_DeleteEntityParameters_Description}

Inheritance: ParametersBase
        /// <summary>${IS6_DeleteEntityService_method_ProcessAsync_D}</summary>
        /// <param name="parameters">${IS6_DeleteEntityService_method_ProcessAsync_param_parameters}</param>
        /// <param name="state">${IS6_DeleteEntityService_method_ProcessAsync_param_state}</param>
        public void ProcessAsync(DeleteEntityParameters parameters, object state)
        {
            if (parameters == null)
            {
                //TODO:本地化
                throw new ArgumentNullException(ExceptionStrings.ArgumentIsNull);
                //throw new ArgumentNullException("AddParameters is Null");
            }
            if (string.IsNullOrEmpty(base.Url))
            {
                //TODO:本地化
                throw new InvalidOperationException(ExceptionStrings.InvalidUrl);
                //throw new InvalidOperationException("Url is not set");
            }

            base.SubmitRequest(base.Url + "/edit.ashx?", GetParameters(parameters),
                new EventHandler<RequestEventArgs>(request_Completed), state, false);
        }
        private Dictionary<string, string> GetParameters(DeleteEntityParameters parameters)
        {
            Dictionary<string, string> dictionary = new Dictionary<string, string>();
            string method = "DeleteEntity";
            dictionary.Add("method", method);
            dictionary.Add("map", parameters.MapName);
            dictionary.Add("layerName", string.Format("\"{0}\"", parameters.LayerName));

            string json = "[";
            List<string> list = new List<string>();
            for (int i = 0; i < parameters.IDs.Count; i++)
            {
                list.Add(string.Format("{0}", parameters.IDs[i]));
            }
            json += string.Join(",", list.ToArray());
            json += "]";

            dictionary.Add("ids", json);
            return dictionary;
        }
 /// <summary>${IS6_DeleteEntityService_method_ProcessAsync_D}</summary>
 /// <overloads>${IS6_DeleteEntityService_method_ProcessAsync_overloads_D}</overloads>
 public void ProcessAsync(DeleteEntityParameters parameters)
 {
     ProcessAsync(parameters, null);
 }