private static void deleteMigrationTask(DcsClient dcsClient) { List <String> taskIdList = new List <string>(); taskIdList.Add("ff808081729848e501729e2cb7d803cc"); taskIdList.Add("ff808081729848e501729e2ae3f803be"); var deleteMigrateTaskReq = new DeleteMigrateTaskRequest() { TaskIdList = taskIdList }; var deleteMigrationTaskReq = new DeleteMigrationTaskRequest() { Body = deleteMigrateTaskReq }; try { // Console.WriteLine(createMigrationTaskRequest.ToString()); var response = dcsClient.DeleteMigrationTask(deleteMigrationTaskReq); Console.WriteLine(response.GetHttpBody()); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }