Skip to content

Commit 71154bf

Browse files
authored
Merge pull request #114818 from xyh1/patch-114
Update storage-blob-index-how-to.md
2 parents 2d70a64 + 03cf52d commit 71154bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/storage/blobs/storage-blob-index-how-to.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static async Task FindBlobsByTagsExample()
200200
BlobContainerClient container1 = serviceClient.GetBlobContainerClient("mycontainer");
201201
BlobContainerClient container2 = serviceClient.GetBlobContainerClient("mycontainer2");
202202

203+
// Blob Index queries and selection
203204
String singleEqualityQuery = @"""Archive"" = 'false'";
204205
String andQuery = @"""Archive"" = 'false' AND ""Priority"" = '01'";
205206
String rangeQuery = @"""Date"" >= '2020-04-20' AND ""Date"" <= '2020-04-30'";
@@ -250,9 +251,9 @@ static async Task FindBlobsByTagsExample()
250251
Console.WriteLine("Find Blob by Tags query: " + queryToUse + Environment.NewLine);
251252

252253
List<FilterBlobItem> blobs = new List<FilterBlobItem>();
253-
foreach (Page<FilterBlobItem> page in serviceClient.FindBlobsByTags(queryToUse).AsPages())
254+
await foreach (FilterBlobItem filterBlobItem in serviceClient.FindBlobsByTagsAsync(queryToUse))
254255
{
255-
blobs.AddRange(page.Values);
256+
blobs.Add(filterBlobItem);
256257
}
257258

258259
foreach (var filteredBlob in blobs)

0 commit comments

Comments
 (0)