CloudBlockBlob.BeginDownloadBlockList Method (BlockListingFilter, AsyncCallback, Object)

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Begins an asynchronous operation to return an enumerable collection of the blob's blocks, using the specified block list filter.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim instance As CloudBlockBlob
Dim blockListingFilter As BlockListingFilter
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginDownloadBlockList(blockListingFilter, callback, state)

Syntax

Visual Basic
Public Function BeginDownloadBlockList ( _
	blockListingFilter As BlockListingFilter, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
C#
public IAsyncResult BeginDownloadBlockList (
	BlockListingFilter blockListingFilter,
	AsyncCallback callback,
	Object state
)
C++
public:
IAsyncResult^ BeginDownloadBlockList (
	BlockListingFilter blockListingFilter, 
	AsyncCallback^ callback, 
	Object^ state
)
J#
JScript

Parameters

blockListingFilter

Type: Microsoft.WindowsAzure.StorageClient.BlockListingFilter

One of the enumeration values that indicates whether to return committed blocks, uncommitted blocks, or both.

callback

Type: System.AsyncCallback

The callback delegate that will receive notification when the asynchronous operation completes.

state

Type: System.Object

A user-defined object that will be passed to the callback delegate.

Return Value

Type: System.IAsyncResult

An IAsyncResult that references the asynchronous operation.

Remarks

The BeginDownloadBlockList method begins an operation to download the block list for the blob, using the specified block listing filter. The block listing filter specifies whether to include only committed blobs, only uncommitted blobs, or both.

The committed block list includes the list of blocks that have been successfully committed to a blob. The list of committed blocks is returned in the same order that they were committed to the blob.

You can use the uncommitted block list to determine which blocks are missing from the blob in cases where either writing a block or committing the block list has failed. The list of uncommitted blocks is returned beginning with the most recently uploaded block to the oldest uploaded block. If a block ID has been uploaded more than once, only the most recently uploaded block appears in the list.

When blocks have been uploaded but the blob has not yet been committed with PutBlockList, calling BeginDownloadBlockList with All returns the uncommitted blocks.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also