Share via


BlobContainerClient.GetBlobsByHierarchy Method

Definition

The GetBlobsByHierarchy(GetBlobsByHierarchyOptions, CancellationToken) operation returns an async collection of blobs in this container. Enumerating the blobs may make multiple requests to the service while fetching all the values. Blobs are ordered lexicographically by name. A Delimiter can be used to traverse a virtual hierarchy of blobs as though it were a file system.

For more information, see List Blobs.

public virtual Azure.Pageable<Azure.Storage.Blobs.Models.BlobHierarchyItem> GetBlobsByHierarchy(Azure.Storage.Blobs.Models.GetBlobsByHierarchyOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBlobsByHierarchy : Azure.Storage.Blobs.Models.GetBlobsByHierarchyOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Blobs.Models.BlobHierarchyItem>
override this.GetBlobsByHierarchy : Azure.Storage.Blobs.Models.GetBlobsByHierarchyOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Blobs.Models.BlobHierarchyItem>
Public Overridable Function GetBlobsByHierarchy (Optional options As GetBlobsByHierarchyOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of BlobHierarchyItem)

Parameters

options
GetBlobsByHierarchyOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

An Pageable<T> of BlobHierarchyItem describing the blobs in the container.

Remarks

A RequestFailedException will be thrown if a failure occurs. If multiple failures occur, an AggregateException will be thrown, containing each failure instance.

Applies to