CloudBlobClient.ListContainers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = default, Microsoft.Azure.Storage.Blob.ContainerListingDetails detailsIncluded = Microsoft.Azure.Storage.Blob.ContainerListingDetails.None, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
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>
Public Overridable Function ListContainers (Optional prefix As String = Nothing, Optional detailsIncluded As ContainerListingDetails = Microsoft.Azure.Storage.Blob.ContainerListingDetails.None, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As IEnumerable(Of 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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기