CloudBlobContainer.ListBlobs Method

Definition

Returns an enumerable collection of the blobs in the container that are retrieved lazily.

C#
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.Blob.IListBlobItem> ListBlobs(string prefix = default, bool useFlatBlobListing = false, Microsoft.Azure.Storage.Blob.BlobListingDetails blobListingDetails = Microsoft.Azure.Storage.Blob.BlobListingDetails.None, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);

Parameters

prefix
String

A string containing the blob name prefix.

useFlatBlobListing
Boolean

A boolean value that specifies whether to list blobs in a flat listing, or whether to list blobs hierarchically, by virtual directory.

blobListingDetails
BlobListingDetails

A BlobListingDetails enumeration describing which items to include in the listing.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

An enumerable collection of objects that implement IListBlobItem and are retrieved lazily.

Attributes

Applies to

Product Versies
Azure SDK for .NET Legacy