GetObjectMetadata() public méthode

public GetObjectMetadata ( string bucketName, string key ) : Task
bucketName string
key string
Résultat Task
Exemple #1
0
 static async void getObjectMeta()
 {
     try
     {
         OssClient      temp   = new OssClient("bm9crcnr0rtnuw8bnrfvq7w8", "RbtJoExTnA8vYLynUfDh7Ior+oM=");
         ObjectMetadata result = await temp.GetObjectMetadata("devdoc", "c# 5.0.pdf");
     }
     catch (AggregateException ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemple #2
0
        static async void getObjectMeta()
        {
            try
            {
                OssClient temp = new OssClient("bm9crcnr0rtnuw8bnrfvq7w8", "RbtJoExTnA8vYLynUfDh7Ior+oM=");
               ObjectMetadata result = await temp.GetObjectMetadata("devdoc", "c# 5.0.pdf");

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

            }
        }