Example #1
0
        public void ClearBucketLabels()
        {
            var bucketName = _fixture.BucketName;
            // Snippet: ClearBucketLabels(string, *)
            StorageClient client = StorageClient.Create();

            IDictionary <string, string> oldLabels = client.ClearBucketLabels(bucketName);

            Console.WriteLine($"Number of labels before clearing: {oldLabels.Count}");
            // End snippet

            Assert.Null(client.GetBucket(bucketName).Labels);
        }