Exportar (0) Imprimir
Expandir Tudo
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

CloudPageBlob.BeginOpenWrite Method (Nullable, AsyncCallback, Object)

Updated: May 15, 2014

Begins an asynchronous operation to open a stream for writing to the blob.

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

[DoesServiceRequestAttribute] 
public ICancellableAsyncResult BeginOpenWrite (
	Nullable<long> size,
	AsyncCallback callback,
	Object state
)

Parameters

size

The size of the page blob, in bytes. The size must be a multiple of 512. If null, the page blob must already exist.

callback

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

state

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

Return Value

An ICancellableAsyncResult that references the asynchronous operation.

Note that this method always makes a call to the BeginFetchAttributes(AccessCondition,BlobRequestOptions,OperationContext,AsyncCallback,Object) method under the covers.

Set the StreamWriteSizeInBytes property before calling this method to specify the block size to write, in bytes, ranging from between 16 KB and 4 MB inclusive.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

 

Mostrar:
© 2014 Microsoft