Begins an asynchronous operation to write pages to a page blob.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual ICancellableAsyncResult BeginWritePages( Stream pageData, long startOffset, string contentMD5, AsyncCallback callback, object state )
public: [DoesServiceRequestAttribute] virtual ICancellableAsyncResult^ BeginWritePages( Stream^ pageData, long long startOffset, String^ contentMD5, AsyncCallback^ callback, Object^ state )
[<DoesServiceRequestAttribute>] abstract BeginWritePages : pageData:Stream * startOffset:int64 * contentMD5:string * callback:AsyncCallback * state:Object -> ICancellableAsyncResult [<DoesServiceRequestAttribute>] override BeginWritePages : pageData:Stream * startOffset:int64 * contentMD5:string * callback:AsyncCallback * state:Object -> ICancellableAsyncResult
<DoesServiceRequestAttribute> Public Overridable Function BeginWritePages ( pageData As Stream, startOffset As Long, contentMD5 As String, callback As AsyncCallback, state As Object ) As ICancellableAsyncResult
Parameters
- pageData
-
Type:
System.IO.StreamSystem.IO::Stream^System.IO.StreamSystem.IO.Stream
A Stream object providing the page data.
- startOffset
-
Type:
System.Int64System::Int64System.Int64System.Int64
The offset at which to begin writing, in bytes. The offset must be a multiple of 512.
- contentMD5
-
Type:
System.StringSystem::String^System.StringSystem.String
An optional hash value used to ensure transactional integrity for the page. May be null or an empty string.
- 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.
Return Value
Type: Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage::ICancellableAsyncResult^Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage.ICancellableAsyncResultAn ICancellableAsyncResult that references the asynchronous operation.
Remarks
Clients may send the Content-MD5 header for a given Write Pages 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: 68aab9e4-931c-4e60-b8d5-6df08fadf00d, 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.