CloudBlockBlob.BeginPutBlock CloudBlockBlob.BeginPutBlock CloudBlockBlob.BeginPutBlock CloudBlockBlob.BeginPutBlock Method

Definition

Overloads

BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

public:
 virtual Microsoft::WindowsAzure::Storage::ICancellableAsyncResult ^ BeginPutBlock(System::String ^ blockId, System::IO::Stream ^ blockData, System::String ^ contentMD5, Microsoft::WindowsAzure::Storage::AccessCondition ^ accessCondition, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions ^ options, Microsoft::WindowsAzure::Storage::OperationContext ^ operationContext, AsyncCallback ^ callback, System::Object ^ state);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual Microsoft.WindowsAzure.Storage.ICancellableAsyncResult BeginPutBlock (string blockId, System.IO.Stream blockData, string contentMD5, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
abstract member BeginPutBlock : string * System.IO.Stream * string * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
override this.BeginPutBlock : string * System.IO.Stream * string * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
Parameters
blockId
String String String String

A Base64-encoded string that identifies the block.

blockData
Stream Stream Stream Stream

A Stream object that provides the data for the block.

contentMD5
String String String String

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

accessCondition
AccessCondition AccessCondition AccessCondition 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
BlobRequestOptions BlobRequestOptions BlobRequestOptions BlobRequestOptions

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

operationContext
OperationContext OperationContext OperationContext OperationContext

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

callback
AsyncCallback AsyncCallback AsyncCallback AsyncCallback

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

state
Object Object Object Object

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

Returns

Remarks

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 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.

BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object) BeginPutBlock(String, Stream, String, AsyncCallback, Object)

Begins an asynchronous operation to upload a single block.

public:
 virtual Microsoft::WindowsAzure::Storage::ICancellableAsyncResult ^ BeginPutBlock(System::String ^ blockId, System::IO::Stream ^ blockData, System::String ^ contentMD5, AsyncCallback ^ callback, System::Object ^ state);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual Microsoft.WindowsAzure.Storage.ICancellableAsyncResult BeginPutBlock (string blockId, System.IO.Stream blockData, string contentMD5, AsyncCallback callback, object state);
abstract member BeginPutBlock : string * System.IO.Stream * string * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
override this.BeginPutBlock : string * System.IO.Stream * string * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
Public Overridable Function BeginPutBlock (blockId As String, blockData As Stream, contentMD5 As String, callback As AsyncCallback, state As Object) As ICancellableAsyncResult
Parameters
blockId
String String String String

A Base64-encoded string that identifies the block.

blockData
Stream Stream Stream Stream

A Stream object that provides the data for the block.

contentMD5
String String String String

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

callback
AsyncCallback AsyncCallback AsyncCallback AsyncCallback

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

state
Object Object Object Object

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

Returns

Remarks

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 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.

Applies to