CloudBlobClient.ListContainers(String, ContainerListingDetails, BlobRequestOptions, OperationContext) Method

Definition

Returns an enumerable collection of containers whose names begin with the specified prefix and that are retrieved lazily.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.Blob.CloudBlobContainer> ListContainers (string prefix = null, Microsoft.Azure.Storage.Blob.ContainerListingDetails detailsIncluded = Microsoft.Azure.Storage.Blob.ContainerListingDetails.None, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = null, Microsoft.Azure.Storage.OperationContext operationContext = null);
abstract member ListContainers : string * Microsoft.Azure.Storage.Blob.ContainerListingDetails * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> seq<Microsoft.Azure.Storage.Blob.CloudBlobContainer>
override this.ListContainers : string * Microsoft.Azure.Storage.Blob.ContainerListingDetails * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> seq<Microsoft.Azure.Storage.Blob.CloudBlobContainer>

Parameters

prefix
String

A string containing the container name prefix.

detailsIncluded
ContainerListingDetails

A ContainerListingDetails enumeration value that indicates whether to return container metadata with 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 CloudBlobContainer objects that are retrieved lazily.

Attributes

Applies to