DeleteObject() public method

public DeleteObject ( string bucketName, string key ) : Task
bucketName string
key string
return Task
Beispiel #1
0
 static async void deleteObject()
 {
     try
     {
         OssClient temp = new OssClient("bm9crcnr0rtnuw8bnrfvq7w8", "RbtJoExTnA8vYLynUfDh7Ior+oM=");
         await temp.DeleteObject("devdoc", "c# 5.0.pdf");
     }
     catch (AggregateException ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Beispiel #2
0
        static  async void deleteObject()
        {
            try
            {
                OssClient temp = new OssClient("bm9crcnr0rtnuw8bnrfvq7w8", "RbtJoExTnA8vYLynUfDh7Ior+oM=");
                await temp.DeleteObject("devdoc", "c# 5.0.pdf");

            }
            catch (AggregateException ex)
            {
                Console.WriteLine(ex.Message);

            }
        }