Share via


BlobBatch Class

Definition

A BlobBatch allows you to batch multiple Azure Storage operations in a single request via SubmitBatch(BlobBatch, Boolean, CancellationToken).

For more information, see Blob Batch.

public class BlobBatch : IDisposable
type BlobBatch = class
    interface IDisposable
Public Class BlobBatch
Implements IDisposable
Inheritance
BlobBatch
Implements

Constructors

BlobBatch()

Creates a new instance of the BlobBatch for mocking.

BlobBatch(BlobBatchClient)

Creates a new instance of the BlobBatch class.

Properties

RequestCount

The number of pending requests in the batch.

Methods

DeleteBlob(String, String, BatchDeleteBlobOptions)

The DeleteBlob(String, String, BatchDeleteBlobOptions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes.

Note that in order to delete a blob, you must delete all of its snapshots. You can delete both at the same time using IncludeSnapshots in options.

For more information, see Delete Blob.

DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions)

The DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes.

Note that in order to delete a blob, you must delete all of its snapshots. You can delete both at the same time using IncludeSnapshots.

For more information, see Delete Blob.

Dispose()

Dispose all messages in the batch.

SetBlobAccessTier(String, String, AccessTier, Nullable<RehydratePriority>, BlobRequestConditions)

The SetBlobAccessTier(String, String, AccessTier, Nullable<RehydratePriority>, BlobRequestConditions) operation sets the tier on a blob. The operation is allowed on block blobs in a blob storage or general purpose v2 account.

A block blob's tier determines Hot/Cool/Archive storage type. This operation does not update the blob's ETag. For detailed information about block blob level tiering see Blob Storage Tiers.

SetBlobAccessTier(Uri, AccessTier, Nullable<RehydratePriority>, BlobRequestConditions)

The SetBlobAccessTier(Uri, AccessTier, Nullable<RehydratePriority>, BlobRequestConditions) operation sets the tier on a blob. The operation is allowed on block blobs in a blob storage or general purpose v2 account.

A block blob's tier determines Hot/Cool/Archive storage type. This operation does not update the blob's ETag. For detailed information about block blob level tiering Blob Storage Tiers.

Applies to