/// 删除存储桶清单任务 public void DeleteBucketInventory() { //.cssg-snippet-body-start:[delete-bucket-inventory] try { string inventoryId = "aInventoryId"; string bucket = "examplebucket-1250000000"; //格式:BucketName-APPID DeleteBucketInventoryRequest deleteRequest = new DeleteBucketInventoryRequest(bucket); deleteRequest.SetInventoryId(inventoryId); DeleteBucketInventoryResult deleteResult = cosXml.DeleteBucketInventory(deleteRequest); //请求成功 Console.WriteLine(deleteResult.GetResultInfo()); } catch (COSXML.CosException.CosClientException clientEx) { //请求失败 Console.WriteLine("CosClientException: " + clientEx); } catch (COSXML.CosException.CosServerException serverEx) { //请求失败 Console.WriteLine("CosServerException: " + serverEx.GetInfo()); } //.cssg-snippet-body-end }