CloudPageBlob.BeginWritePages CloudPageBlob.BeginWritePages CloudPageBlob.BeginWritePages CloudPageBlob.BeginWritePages Method

Definition

Overloads

BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object)

Begins an asynchronous operation to write pages to a page blob.

BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to write pages to a page blob.

BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AsyncCallback, Object)

Begins an asynchronous operation to write pages to a page blob.

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

A Stream object providing the page data.

startOffset
Int64 Int64 Int64 Int64

The offset at which to begin writing, in bytes. The offset must be a multiple of 512.

contentMD5
String String String String

An optional hash value used to ensure transactional integrity for the page. 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 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 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.

BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) BeginWritePages(Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)

Begins an asynchronous operation to write pages to a page blob.

public:
 virtual Microsoft::WindowsAzure::Storage::ICancellableAsyncResult ^ BeginWritePages(System::IO::Stream ^ pageData, long startOffset, 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 BeginWritePages (System.IO.Stream pageData, long startOffset, string contentMD5, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
abstract member BeginWritePages : System.IO.Stream * int64 * string * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
override this.BeginWritePages : System.IO.Stream * int64 * string * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
Parameters
pageData
Stream Stream Stream Stream

A Stream object providing the page data.

startOffset
Int64 Int64 Int64 Int64

The offset at which to begin writing, in bytes. The offset must be a multiple of 512.

contentMD5
String String String String

An optional hash value used to ensure transactional integrity for the page. 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.

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