CloudBlob.DownloadToByteArray(Byte[], Int32, AccessCondition, BlobRequestOptions, OperationContext) CloudBlob.DownloadToByteArray(Byte[], Int32, AccessCondition, BlobRequestOptions, OperationContext) CloudBlob.DownloadToByteArray(Byte[], Int32, AccessCondition, BlobRequestOptions, OperationContext) Method

Definition

Downloads the contents of a blob to a byte array.

 virtual int DownloadToByteArray(std::Array <byte> const & target, int index, Microsoft::WindowsAzure::Storage::AccessCondition const & accessCondition = null, Microsoft::WindowsAzure::Storage::Blob::BlobRequestOptions const & options = null, Microsoft::WindowsAzure::Storage::OperationContext const & operationContext = null);
[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual int DownloadToByteArray (byte[] target, int index, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member DownloadToByteArray : byte[] * int * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> int
override this.DownloadToByteArray : byte[] * int * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> int
Parameters
target
Byte[]

The target byte array.

index
Int32 Int32 Int32

The starting offset in the byte array.

accessCondition
AccessCondition AccessCondition AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed.

options
BlobRequestOptions BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext OperationContext

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

Returns

The total number of bytes read into the buffer.

Applies to