CloudBlobClient.ListContainers(String, ContainerListingDetails, BlobRequestOptions, OperationContext) 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.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer> ListContainers (string prefix = null, Microsoft.WindowsAzure.Storage.Blob.ContainerListingDetails detailsIncluded = Microsoft.WindowsAzure.Storage.Blob.ContainerListingDetails.None, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member ListContainers : string * Microsoft.WindowsAzure.Storage.Blob.ContainerListingDetails * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> seq<Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer>
override this.ListContainers : string * Microsoft.WindowsAzure.Storage.Blob.ContainerListingDetails * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> seq<Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer>
Parameters
prefix
String String

A string containing the container name prefix.

detailsIncluded
ContainerListingDetails ContainerListingDetails

A ContainerListingDetails enumeration value that indicates whether to return container metadata with the listing.

options
BlobRequestOptions BlobRequestOptions

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

operationContext
OperationContext OperationContext

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

Returns

An enumerable collection of CloudBlobContainer objects that are retrieved lazily.

Applies to