<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.2.2" />

Microsoft.Azure.Storage.Blob.CloudBlobContainer

public class CloudBlobContainer
Represents a container in the Microsoft Azure Blob service.
public IDictionary<string, string> Metadata { get; }

Gets the container's metadata.

public string Name { get; }

Gets the name of the container.

Gets the container's system properties.

Gets the Blob service client for the container.

public StorageUri StorageUri { get; }

Gets the container's URIs for both the primary and secondary locations.

public Uri Uri { get; }

Gets the container's URI for the primary location.

public CloudBlobContainer(Uri containerAddress)

Initializes a new instance of the CloudBlobContainer class.

public CloudBlobContainer(Uri containerAddress, StorageCredentials credentials)

Initializes a new instance of the CloudBlobContainer class.

public CloudBlobContainer(StorageUri containerAddress, StorageCredentials credentials)

Initializes a new instance of the CloudBlobContainer class.

public virtual string AcquireLease(TimeSpan? leaseTime, string proposedLeaseId, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Acquires a lease on this container.

public virtual Task<string> AcquireLeaseAsync(TimeSpan? leaseTime, string proposedLeaseId = null)

Initiates an asynchronous operation that acquires a lease on this container.

public virtual Task<string> AcquireLeaseAsync(TimeSpan? leaseTime, string proposedLeaseId, CancellationToken cancellationToken)

Initiates an asynchronous operation that acquires a lease on this container.

public virtual Task<string> AcquireLeaseAsync(TimeSpan? leaseTime, string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that acquires a lease on this container.

public virtual Task<string> AcquireLeaseAsync(TimeSpan? leaseTime, string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that acquires a lease on this container.

public virtual ICancellableAsyncResult BeginAcquireLease(TimeSpan? leaseTime, string proposedLeaseId, AsyncCallback callback, object state)

Begins an asynchronous operation to acquire a lease on this container.

public virtual ICancellableAsyncResult BeginAcquireLease(TimeSpan? leaseTime, string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to acquire a lease on this container.

public virtual ICancellableAsyncResult BeginBreakLease(TimeSpan? breakPeriod, AsyncCallback callback, object state)

Begins an asynchronous operation to break the current lease on this container.

public virtual ICancellableAsyncResult BeginBreakLease(TimeSpan? breakPeriod, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to break the current lease on this container.

public virtual ICancellableAsyncResult BeginChangeLease(string proposedLeaseId, AccessCondition accessCondition, AsyncCallback callback, object state)

Begins an asynchronous operation to change the lease on this container.

public virtual ICancellableAsyncResult BeginChangeLease(string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to change the lease on this container.

public virtual ICancellableAsyncResult BeginCreate(AsyncCallback callback, object state)

Begins an asynchronous operation to create a container.

public virtual ICancellableAsyncResult BeginCreate(BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to create a container.

public virtual ICancellableAsyncResult BeginCreate(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to create a container and specify the level of access to the container's data.

public virtual ICancellableAsyncResult BeginCreate(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to create a container and specify the level of access to the container's data.

public virtual ICancellableAsyncResult BeginCreateIfNotExists(AsyncCallback callback, object state)

Begins an asynchronous request to create the container if it does not already exist.

public virtual ICancellableAsyncResult BeginCreateIfNotExists(BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to create the container if it does not already exist.

public virtual ICancellableAsyncResult BeginCreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to create the container if it does not already exist.

public virtual ICancellableAsyncResult BeginCreateIfNotExists(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to create the container if it does not already exist.

public virtual ICancellableAsyncResult BeginDelete(AsyncCallback callback, object state)

Begins an asynchronous operation to delete a container.

public virtual ICancellableAsyncResult BeginDelete(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to delete a container.

public virtual ICancellableAsyncResult BeginDeleteIfExists(AsyncCallback callback, object state)

Begins an asynchronous request to delete the container if it already exists.

public virtual ICancellableAsyncResult BeginDeleteIfExists(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to delete the container if it already exists.

public virtual ICancellableAsyncResult BeginExists(AsyncCallback callback, object state)

Begins an asynchronous request to check whether the container exists.

public virtual ICancellableAsyncResult BeginExists(BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to check whether the container exists.

public virtual ICancellableAsyncResult BeginFetchAttributes(AsyncCallback callback, object state)

Begins an asynchronous operation to retrieve the container's attributes.

public virtual ICancellableAsyncResult BeginFetchAttributes(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to retrieve the container's attributes.

public virtual ICancellableAsyncResult BeginGetAccountProperties(AsyncCallback callback, object state)

Begins an asynchronous operation to get properties for the account this container resides on.

public virtual ICancellableAsyncResult BeginGetAccountProperties(BlobRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to get properties for the account this container resides on.

public virtual ICancellableAsyncResult BeginGetBlobReferenceFromServer(string blobName, AsyncCallback callback, object state)

Begins an asynchronous operation to get a reference to a blob in this container.

public virtual ICancellableAsyncResult BeginGetBlobReferenceFromServer(string blobName, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to get a reference to a blob in this container.

public virtual ICancellableAsyncResult BeginGetPermissions(AsyncCallback callback, object state)

Begins an asynchronous request to get the permissions settings for the container.

public virtual ICancellableAsyncResult BeginGetPermissions(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to get the permissions settings for the container.

public virtual ICancellableAsyncResult BeginListBlobsSegmented(BlobContinuationToken currentToken, AsyncCallback callback, object state)

Begins an asynchronous operation to return a result segment containing a collection of blob items in the container.

public virtual ICancellableAsyncResult BeginListBlobsSegmented(string prefix, BlobContinuationToken currentToken, AsyncCallback callback, object state)

Begins an asynchronous operation to return a result segment containing a collection of blob items in the container.

public virtual ICancellableAsyncResult BeginListBlobsSegmented(string prefix, bool useFlatBlobListing, BlobListingDetails blobListingDetails, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to return a result segment containing a collection of blob items in the container.

public virtual ICancellableAsyncResult BeginReleaseLease(AccessCondition accessCondition, AsyncCallback callback, object state)

Begins an asynchronous operation to release the lease on this container.

public virtual ICancellableAsyncResult BeginReleaseLease(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to release the lease on this container.

public virtual ICancellableAsyncResult BeginRenewLease(AccessCondition accessCondition, AsyncCallback callback, object state)

Begins an asynchronous operation to renew a lease on this container.

public virtual ICancellableAsyncResult BeginRenewLease(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to renew a lease on this container.

public virtual ICancellableAsyncResult BeginSetMetadata(AsyncCallback callback, object state)

Begins an asynchronous operation to set user-defined metadata on the container.

public virtual ICancellableAsyncResult BeginSetMetadata(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous operation to set user-defined metadata on the container.

public virtual ICancellableAsyncResult BeginSetPermissions(BlobContainerPermissions permissions, AsyncCallback callback, object state)

Begins an asynchronous request to set permissions for the container.

public virtual ICancellableAsyncResult BeginSetPermissions(BlobContainerPermissions permissions, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state)

Begins an asynchronous request to set permissions for the container.

public virtual TimeSpan BreakLease(TimeSpan? breakPeriod = default, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Breaks the current lease on this container.

public virtual Task<TimeSpan> BreakLeaseAsync(TimeSpan? breakPeriod)

Initiates an asynchronous operation that breaks the current lease on this container.

public virtual Task<TimeSpan> BreakLeaseAsync(TimeSpan? breakPeriod, CancellationToken cancellationToken)

Initiates an asynchronous operation that breaks the current lease on this container.

public virtual Task<TimeSpan> BreakLeaseAsync(TimeSpan? breakPeriod, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that breaks the current lease on this container.

public virtual Task<TimeSpan> BreakLeaseAsync(TimeSpan? breakPeriod, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that breaks the current lease on this container.

public virtual string ChangeLease(string proposedLeaseId, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Changes the lease ID on this container.

public virtual Task<string> ChangeLeaseAsync(string proposedLeaseId, AccessCondition accessCondition)

Initiates an asynchronous operation that changes the lease ID on this container.

public virtual Task<string> ChangeLeaseAsync(string proposedLeaseId, AccessCondition accessCondition, CancellationToken cancellationToken)

Initiates an asynchronous operation that changes the lease ID on this container.

public virtual Task<string> ChangeLeaseAsync(string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that changes the lease ID on this container.

public virtual Task<string> ChangeLeaseAsync(string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that changes the lease ID on this container.

public virtual void Create(BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container.

public virtual void Create(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container and specifies the level of access to the container's data.

public virtual void Create(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container and specifies the level of access to the container's data.

public virtual Task CreateAsync()

Initiates an asynchronous operation that creates a container.

public virtual Task CreateAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that creates a container.

public virtual Task CreateAsync(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that creates a container.

public virtual Task CreateAsync(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that creates a container and specifies the level of access to the container's data.

public virtual Task CreateAsync(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that creates a container and specifies the level of access to the container's data.

public virtual bool CreateIfNotExists(BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container if it does not already exist.

public virtual bool CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container if it does not already exist and specifies whether the container or its blobs are publicly accessible.

public virtual bool CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Creates the container if it does not already exist and specifies whether the container or its blobs are publicly accessible.

public virtual Task<bool> CreateIfNotExistsAsync()

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(BlobContainerPublicAccessType accessType, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual Task<bool> CreateIfNotExistsAsync(BlobContainerPublicAccessType accessType, BlobContainerEncryptionScopeOptions encryptionScopeOptions, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that creates the container if it does not already exist.

public virtual void Delete(AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Deletes the container.

public virtual Task DeleteAsync()

Initiates an asynchronous operation that deletes the container.

public virtual Task DeleteAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that deletes the container.

public virtual Task DeleteAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that deletes the container.

public virtual Task DeleteAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that deletes the container.

public virtual bool DeleteIfExists(AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Deletes the container if it already exists.

public virtual Task<bool> DeleteIfExistsAsync()

Initiates an asynchronous operation that deletes the container if it already exists.

public virtual Task<bool> DeleteIfExistsAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that deletes the container if it already exists.

public virtual Task<bool> DeleteIfExistsAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that deletes the container if it already exists.

public virtual Task<bool> DeleteIfExistsAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that deletes the container if it already exists.

public virtual string EndAcquireLease(IAsyncResult asyncResult)

Ends an asynchronous operation to acquire a lease on this container.

public virtual TimeSpan EndBreakLease(IAsyncResult asyncResult)

Ends an asynchronous operation to break the current lease on this container.

public virtual string EndChangeLease(IAsyncResult asyncResult)

Ends an asynchronous operation to change the lease on this container.

public virtual void EndCreate(IAsyncResult asyncResult)

Ends an asynchronous operation to create a container.

public virtual bool EndCreateIfNotExists(IAsyncResult asyncResult)

Returns the result of an asynchronous request to create the container if it does not already exist.

public virtual void EndDelete(IAsyncResult asyncResult)

Ends an asynchronous operation to delete a container.

public virtual bool EndDeleteIfExists(IAsyncResult asyncResult)

Returns the result of an asynchronous request to delete the container if it already exists.

public virtual bool EndExists(IAsyncResult asyncResult)

Returns the asynchronous result of the request to check whether the container exists.

public virtual void EndFetchAttributes(IAsyncResult asyncResult)

Ends an asynchronous operation to retrieve the container's attributes.

public virtual AccountProperties EndGetAccountProperties(IAsyncResult asyncResult)

Ends an asynchronous operation to get properties for the account this container resides on.

Ends an asynchronous operation to get a reference to a blob in this container.

Returns the asynchronous result of the request to get the permissions settings for the container.

Ends an asynchronous operation to return a result segment containing a collection of blob items in the container.

public virtual void EndReleaseLease(IAsyncResult asyncResult)

Ends an asynchronous operation to release the lease on this container.

public virtual void EndRenewLease(IAsyncResult asyncResult)

Ends an asynchronous operation to renew a lease on this container.

public virtual void EndSetMetadata(IAsyncResult asyncResult)

Ends an asynchronous request operation to set user-defined metadata on the container.

public virtual void EndSetPermissions(IAsyncResult asyncResult)

Returns the result of an asynchronous request to set permissions for the container.

public virtual bool Exists(BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Checks whether the container exists.

public virtual Task<bool> ExistsAsync()

Initiates an asynchronous operation that checks whether the container exists.

public virtual Task<bool> ExistsAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that checks whether the container exists.

public virtual Task<bool> ExistsAsync(BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that checks whether the container exists.

public virtual Task<bool> ExistsAsync(BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that checks whether the container exists.

public virtual Task<bool> ExistsAsync(bool primaryOnly, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that checks whether the container exists.

public virtual void FetchAttributes(AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Retrieves the container's attributes.

public virtual Task FetchAttributesAsync()

Initiates an asynchronous operation that retrieves the container's attributes.

public virtual Task FetchAttributesAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that retrieves the container's attributes.

public virtual Task FetchAttributesAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that retrieves the container's attributes.

public virtual Task FetchAttributesAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that retrieves the container's attributes.

public virtual AccountProperties GetAccountProperties(BlobRequestOptions requestOptions = null, OperationContext operationContext = null)

Gets properties for the account this container resides on.

public virtual Task<AccountProperties> GetAccountPropertiesAsync()

Initiates an asynchronous operation to get properties for the account this container resides on.

public virtual Task<AccountProperties> GetAccountPropertiesAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation to get properties for the account this container resides on.

public virtual Task<AccountProperties> GetAccountPropertiesAsync(BlobRequestOptions requestOptions, OperationContext operationContext)

Initiates an asynchronous operation to get properties for the account this container resides on.

public virtual Task<AccountProperties> GetAccountPropertiesAsync(BlobRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation to get properties for the account this container resides on.

public virtual CloudAppendBlob GetAppendBlobReference(string blobName)

Gets a reference to an append blob in this container.

public virtual CloudAppendBlob GetAppendBlobReference(string blobName, DateTimeOffset? snapshotTime)

Gets a reference to an append blob in this container.

public virtual CloudBlob GetBlobReference(string blobName)

Gets a reference to a blob in this container.

public virtual CloudBlob GetBlobReference(string blobName, DateTimeOffset? snapshotTime)

Gets a reference to a blob in this container.

public virtual ICloudBlob GetBlobReferenceFromServer(string blobName, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Gets a reference to a blob in this container.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(string blobName)

Initiates an asynchronous operation that gets a reference to a blob in this container.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(string blobName, CancellationToken cancellationToken)

Initiates an asynchronous operation that gets a reference to a blob in this container.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(string blobName, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that gets a reference to a blob in this container.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(string blobName, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that gets a reference to a blob in this container.

public virtual CloudBlockBlob GetBlockBlobReference(string blobName)

Gets a reference to a block blob in this container.

public virtual CloudBlockBlob GetBlockBlobReference(string blobName, DateTimeOffset? snapshotTime)

Gets a reference to a block blob in this container.

public virtual CloudBlobDirectory GetDirectoryReference(string relativeAddress)

Gets a reference to a virtual blob directory beneath this container.

public virtual CloudPageBlob GetPageBlobReference(string blobName)

Gets a reference to a page blob in this container.

public virtual CloudPageBlob GetPageBlobReference(string blobName, DateTimeOffset? snapshotTime)

Returns a reference to a page blob in this virtual directory.

public virtual BlobContainerPermissions GetPermissions(AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Gets the permissions settings for the container.

Initiates an asynchronous operation that gets the permissions settings for the container.

Initiates an asynchronous operation that gets the permissions settings for the container.

public virtual Task<BlobContainerPermissions> GetPermissionsAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that gets the permissions settings for the container.

public virtual Task<BlobContainerPermissions> GetPermissionsAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that gets the permissions settings for the container.

Returns a shared access signature for the container.

public string GetSharedAccessSignature(SharedAccessBlobPolicy policy, string groupPolicyIdentifier)

Returns a shared access signature for the container.

public string GetSharedAccessSignature(SharedAccessBlobPolicy policy, string groupPolicyIdentifier, SharedAccessProtocol? protocols, IPAddressOrRange ipAddressOrRange)

Returns a shared access signature for the container.

public string GetUserDelegationSharedAccessSignature(UserDelegationKey delegationKey, SharedAccessBlobPolicy policy, SharedAccessBlobHeaders headers = null, SharedAccessProtocol? protocols = default, IPAddressOrRange ipAddressOrRange = null)

Returns an user-delegation-based shared access signature for the container, with credentials solely based on the UserDelegationKey provided.

public virtual IEnumerable<IListBlobItem> ListBlobs(string prefix = null, bool useFlatBlobListing = false, BlobListingDetails blobListingDetails = 0, BlobRequestOptions options = null, OperationContext operationContext = null)

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

Returns a result segment containing a collection of blob items in the container.

public virtual BlobResultSegment ListBlobsSegmented(string prefix, BlobContinuationToken currentToken)

Returns a result segment containing a collection of blob items in the container.

public virtual BlobResultSegment ListBlobsSegmented(string prefix, bool useFlatBlobListing, BlobListingDetails blobListingDetails, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext)

Returns a result segment containing a collection of blob items in the container.

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, BlobContinuationToken currentToken)

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, BlobContinuationToken currentToken, CancellationToken cancellationToken)

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, bool useFlatBlobListing, BlobListingDetails blobListingDetails, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, bool useFlatBlobListing, BlobListingDetails blobListingDetails, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that returns a result segment containing a collection of blob items in the container.

public virtual void ReleaseLease(AccessCondition accessCondition, BlobRequestOptions options = null, OperationContext operationContext = null)

Releases the lease on this container.

public virtual Task ReleaseLeaseAsync(AccessCondition accessCondition)

Initiates an asynchronous operation that releases the lease on this container.

public virtual Task ReleaseLeaseAsync(AccessCondition accessCondition, CancellationToken cancellationToken)

Initiates an asynchronous operation that releases the lease on this container.

public virtual Task ReleaseLeaseAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that releases the lease on this container.

public virtual Task ReleaseLeaseAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that releases the lease on this container.

public virtual void RenewLease(AccessCondition accessCondition, BlobRequestOptions options = null, OperationContext operationContext = null)

Renews a lease on this container.

public virtual Task RenewLeaseAsync(AccessCondition accessCondition)

Initiates an asynchronous operation that renews a lease on this container.

public virtual Task RenewLeaseAsync(AccessCondition accessCondition, CancellationToken cancellationToken)

Initiates an asynchronous operation that renews a lease on this container.

public virtual Task RenewLeaseAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that renews a lease on this container.

public virtual Task RenewLeaseAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that renews a lease on this container.

public virtual void SetMetadata(AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Sets the container's user-defined metadata.

public virtual Task SetMetadataAsync()

Initiates an asynchronous operation that sets container's user-defined metadata.

public virtual Task SetMetadataAsync(CancellationToken cancellationToken)

Initiates an asynchronous operation that sets container's user-defined metadata.

public virtual Task SetMetadataAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that sets container's user-defined metadata.

public virtual Task SetMetadataAsync(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that sets container's user-defined metadata.

public virtual void SetPermissions(BlobContainerPermissions permissions, AccessCondition accessCondition = null, BlobRequestOptions options = null, OperationContext operationContext = null)

Sets permissions for the container.

Initiates an asynchronous operation that sets permissions for the container.

public virtual Task SetPermissionsAsync(BlobContainerPermissions permissions, CancellationToken cancellationToken)

Initiates an asynchronous operation that sets permissions for the container.

public virtual Task SetPermissionsAsync(BlobContainerPermissions permissions, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Initiates an asynchronous operation that sets permissions for the container.

public virtual Task SetPermissionsAsync(BlobContainerPermissions permissions, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Initiates an asynchronous operation that sets permissions for the container.