你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

Name Description
BlobBatch()

Creates a new instance of the BlobBatch for mocking.

BlobBatch(BlobBatchClient)

Creates a new instance of the BlobBatch class.

Properties

Name Description
RequestCount

The number of pending requests in the batch.

Methods

Name Description
DeleteBlob(String, String, BatchDeleteBlobOptions)

The DeleteBlob(String, String, BatchDeleteBlobOptions) operation marks the specified blob or snapshot for deletion.

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.

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