Questa pagina è stata utile?
I suggerimenti relativi al contenuto di questa pagina sono importanti. Comunicaceli.
Altri suggerimenti?
1500 caratteri rimanenti
MSDN Library
EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

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

 

Begins an asynchronous operation to upload a single block.

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

[DoesServiceRequestAttribute]
public ICancellableAsyncResult BeginPutBlock(
	string blockId,
	Stream blockData,
	string contentMD5,
	AccessCondition accessCondition,
	BlobRequestOptions options,
	OperationContext operationContext,
	AsyncCallback callback,
	object state
)

Parameters

blockId
Type: System.String

A Base64-encoded string that identifies the block.

blockData
Type: System.IO.Stream

A Stream object that provides the data for the block.

contentMD5
Type: System.String

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

accessCondition
Type: Microsoft.WindowsAzure.Storage.AccessCondition

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

options
Type: Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request, or null. If null, default options are applied to the request.

operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContext

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

callback
Type: System.AsyncCallback

An AsyncCallback 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: Microsoft.WindowsAzure.Storage.ICancellableAsyncResult

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 P:BlobRequestOptions.UseTransactionalMd5 property is set to true and the contentMD5 parameter is set to null, then the client library will calculate the MD5 value internally.

Return to top
Mostra:
© 2015 Microsoft