${iServer6_SetLayerStyleParameters_Title}

        /// <summary>${iServer6_SetLayerStyleService_method_processAsync_D}</summary>
        /// <param name="parameters">${iServer6_SetLayerStyleService_method_processAsync_param_parameters}</param>
        /// <param name="state">${iServer6_SetLayerStyleService_method_processAsync_param_state}</param>
        public void ProcessAsync(SetLayerStyleParameters parameters, object state)
        {
            mapUrl = base.Url;

            requestParameters = parameters;
            ValidationUrlAndParametres();
            resourceID = requestParameters.ResourceID;
            GetMapName();

            if (!string.IsNullOrEmpty(resourceID))//直接put
            {
                base.SubmitRequest(GetPutRequestUrl(), requestParameters.Style.ToDictionary(), new EventHandler<RequestEventArgs>(SetLayerStatusRequest_Complated), state, true, false, false);
            }
            else   //先post再put
            {
                string getTempLayerSetUrl = Url;
                getTempLayerSetUrl += "/tempLayersSet.json?holdTime=" + parameters.HoldTime;
                WebClient temp = new WebClient();
                temp.Encoding = Encoding.UTF8;
                temp.Headers["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8";
                temp.UploadStringCompleted += new UploadStringCompletedEventHandler(PostRequest_Complated);
                temp.UploadStringAsync(new Uri(getTempLayerSetUrl), "POST", "", state);
            }
        }
        private void SetLayerStyle_Click(object sender, RoutedEventArgs e)
        {
            SetLayerStyleService setLayerStyleService = new SetLayerStyleService(url);

            SetLayerStyleParameters parameters = new SetLayerStyleParameters
            {
                Style = new ServerStyle
                {
                    FillForeColor = Colors.Green
                },
                LayerName = "Ocean@World",
                ResourceID = "7"
            };

            setLayerStyleService.ProcessAsync(parameters);
            setLayerStyleService.ProcessCompleted += new EventHandler<SetLayerEventArgs>(setLayerStyleService_ProcessCompleted);
            setLayerStyleService.Failed += new EventHandler<ServiceFailedEventArgs>(setLayerStyleService_Failed);
        }
 /// <summary>${iServer6_SetLayerStyleService_method_processAsync_D}</summary>
 /// <overloads>${iServer6_SetLayerStyleService_method_processAsync_overloads}</overloads>
 public void ProcessAsync(SetLayerStyleParameters parameters)
 {
     ProcessAsync(parameters, null);
 }