Storage Client Library for Windows Phone (Version 7.0)

Microsoft Windows Azure Storage Blob

Begins an asynchronous operation to upload a single block.

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

Syntax

 
[DoesServiceRequestAttribute]
public virtual ICancellableAsyncResult BeginPutBlock(
	string blockId,
	Stream blockData,
	string contentMD5,
	AccessCondition accessCondition,
	BlobRequestOptions options,
	OperationContext operationContext,
	AsyncCallback callback,
	object state
)
 
public:
[DoesServiceRequestAttribute]
virtual ICancellableAsyncResult^ BeginPutBlock(
	String^ blockId,
	Stream^ blockData,
	String^ contentMD5,
	AccessCondition^ accessCondition,
	BlobRequestOptions^ options,
	OperationContext^ operationContext,
	AsyncCallback^ callback,
	Object^ state
)
 
[<DoesServiceRequestAttribute>]
abstract BeginPutBlock : 
        blockId:string *
        blockData:Stream *
        contentMD5:string *
        accessCondition:AccessCondition *
        options:BlobRequestOptions *
        operationContext:OperationContext *
        callback:AsyncCallback *
        state:Object -> ICancellableAsyncResult
[<DoesServiceRequestAttribute>]
override BeginPutBlock : 
        blockId:string *
        blockData:Stream *
        contentMD5:string *
        accessCondition:AccessCondition *
        options:BlobRequestOptions *
        operationContext:OperationContext *
        callback:AsyncCallback *
        state:Object -> ICancellableAsyncResult
 
<DoesServiceRequestAttribute>
Public Overridable Function BeginPutBlock (
	blockId As String,
	blockData As Stream,
	contentMD5 As String,
	accessCondition As AccessCondition,
	options As BlobRequestOptions,
	operationContext As OperationContext,
	callback As AsyncCallback,
	state As Object
) As ICancellableAsyncResult

Parameters

blockId
Type: System.StringSystem::String^System.StringSystem.String

A Base64-encoded string that identifies the block.

blockData
Type: System.IO.StreamSystem.IO::Stream^System.IO.StreamSystem.IO.Stream

A Stream object that provides the data for the block.

contentMD5
Type: System.StringSystem::String^System.StringSystem.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.AccessConditionMicrosoft.WindowsAzure.Storage::AccessCondition^Microsoft.WindowsAzure.Storage.AccessConditionMicrosoft.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.BlobRequestOptionsMicrosoft.WindowsAzure.Storage.Blob::BlobRequestOptions^Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptionsMicrosoft.WindowsAzure.Storage.Blob.BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage::OperationContext^Microsoft.WindowsAzure.Storage.OperationContextMicrosoft.WindowsAzure.Storage.OperationContext

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

callback
Type: System.AsyncCallbackSystem::AsyncCallback^System.AsyncCallbackSystem.AsyncCallback

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

state
Type: System.ObjectSystem::Object^System.ObjectSystem.Object

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

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 P:BlobRequestOptions.UseTransactionalMd5Referenced topic's target id should not be empty. Article id: 10e58d82-f416-477c-9d88-b673bf3a580c, link: 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