/// <summary> /// use stub to delete a PriceList via web services /// </summary> /// <param name="PriceListPaths">PriceLists to delete, Array of paths</param> /// <returns>ArrayList of TDelete_Return</returns> public ArrayList delete(string[] PriceListPaths) { TDelete_Return[] PriceLists_out = stub.delete(PriceListPaths); ArrayList result = new ArrayList(); for (int i = 0; i < PriceLists_out.Length; i++) { TDelete_Return PriceList_out = PriceLists_out[i]; if (PriceList_out.Error == null) { Console.WriteLine("successfully deleted PriceList: " + PriceList_out.Path); result.Add(PriceList_out); } else { Console.WriteLine("an error occured (Epages Error):\n" + PriceList_out.Error.Message); } } return(result); }