CloudPageBlob.WritePages Method (Stream, Int64, String, AccessCondition, BlobRequestOptions, OperationContext)

 

Updated: February 24, 2017

Writes pages to a page blob.

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

[DoesServiceRequestAttribute]
public virtual void WritePages(
	Stream pageData,
	long startOffset,
	string contentMD5 = null,
	AccessCondition accessCondition = null,
	BlobRequestOptions options = null,
	OperationContext operationContext = null
)

Parameters

pageData
Type: System.IO.Stream

A Stream object providing the page data.

startOffset
Type: System.Int64

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

contentMD5
Type: System.String

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

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