/// 获取存储桶静态网站 public void GetBucketWebsite() { //.cssg-snippet-body-start:[get-bucket-website] try { string bucket = "examplebucket-1250000000"; //格式:BucketName-APPID DeleteBucketTaggingRequest request = new DeleteBucketTaggingRequest(bucket); //执行请求 DeleteBucketTaggingResult result = cosXml.DeleteBucketTagging(request); //请求成功 Console.WriteLine(result.GetResultInfo()); } catch (COSXML.CosException.CosClientException clientEx) { //请求失败 Console.WriteLine("CosClientException: " + clientEx); } catch (COSXML.CosException.CosServerException serverEx) { //请求失败 Console.WriteLine("CosServerException: " + serverEx.GetInfo()); } //.cssg-snippet-body-end }