Exemplo n.º 1
0
        public static void DeleteBucketLogging(string bucketName)
        {
            try
            {
                client.DeleteBucketLogging(bucketName);

                Console.WriteLine("Delete bucket:{0} Logging succeeded ", bucketName);
            }
            catch (OssException ex)
            {
                Console.WriteLine("Failed with error info: {0}; Error info: {1}. \nRequestID:{2}\tHostID:{3}",
                                  ex.ErrorCode, ex.Message, ex.RequestId, ex.HostId);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Failed with error info: {0}", ex.Message);
            }
        }