Skip to content

Commit 844061e

Browse files
authored
Merge pull request #100207 from tamram/tamram-0105
add continuationToken to listing call
2 parents ec7d024 + 627f842 commit 844061e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

articles/storage/blobs/storage-blob-containers-list.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: tamram
66

77
ms.service: storage
88
ms.topic: conceptual
9-
ms.date: 10/01/2019
9+
ms.date: 01/06/2020
1010
ms.author: tamram
1111
ms.subservice: blobs
1212
---
@@ -45,7 +45,8 @@ To return container metadata with the results, specify the **Metadata** value fo
4545
The following example asynchronously lists the containers in a storage account that begin with a specified prefix. The example lists containers in increments of 5 results at a time, and uses the continuation token to get the next segment of results. The example also returns container metadata with the results.
4646

4747
```csharp
48-
private static async Task ListContainersWithPrefixAsync(CloudBlobClient blobClient, string prefix)
48+
private static async Task ListContainersWithPrefixAsync(CloudBlobClient blobClient,
49+
string prefix)
4950
{
5051
Console.WriteLine("List all containers beginning with prefix {0}, plus container metadata:", prefix);
5152

articles/storage/blobs/storage-blobs-list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: tamram
66

77
ms.service: storage
88
ms.topic: article
9-
ms.date: 11/08/2019
9+
ms.date: 01/06/2020
1010
ms.author: tamram
1111
ms.subservice: blobs
1212
---
@@ -136,12 +136,12 @@ private static async Task ListBlobsHierarchicalListingAsync(CloudBlobContainer c
136136
try
137137
{
138138
// Call the listing operation and enumerate the result segment.
139-
// When the continuation token is null, the last segment has been returned and
139+
// When the continuation token is null, the last segment has been returned and
140140
// execution can exit the loop.
141141
do
142142
{
143143
BlobResultSegment resultSegment = await container.ListBlobsSegmentedAsync(prefix,
144-
false, BlobListingDetails.Metadata, null, null, null, null);
144+
false, BlobListingDetails.Metadata, null, continuationToken, null, null);
145145
foreach (var blobItem in resultSegment.Results)
146146
{
147147
// A hierarchical listing may return both virtual directories and blobs.

0 commit comments

Comments
 (0)