Eksporter (0) Skriv ut
Vis alt
Dette innholdet er ikke tilgjengelig på ditt språk, men her er den engelske versjonen.

CloudBlockBlob.BeginPutBlock Method (String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Updated: May 15, 2014

Begins an asynchronous operation to upload a single block.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

public ICancellableAsyncResult BeginPutBlock (
	string blockId,
	Stream blockData,
	string contentMD5,
	AccessCondition accessCondition,
	BlobRequestOptions options,
	OperationContext operationContext,
	AsyncCallback callback,
	Object state



A Base64-encoded string that identifies the block.


A Stream object that provides the data for the block.


An optional hash value used to ensure transactional integrity for the block. May be null or an empty string.


An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.


A BlobRequestOptions object that specifies additional options for the request.


An OperationContext object that represents the context for the current operation.


An AsyncCallback delegate that will receive notification when the asynchronous operation completes.


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

Return Value

An ICancellableAsyncResult that references the asynchronous operation.

Clients may send the Content-MD5 header for a given Put Block operation as a means to ensure transactional integrity over the wire. The contentMD5 parameter permits clients who already have access to a pre-computed MD5 value for a given byte range to provide it. If the UseTransactionalMd5 property is set to true and the contentMD5 parameter is set to null, then the client library will calculate the MD5 value internally.

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

Development Platforms

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


© 2015 Microsoft