CloudBlob.DownloadRangeToByteArray(Byte[], Int32, Nullable<Int64>, Nullable<Int64>, AccessCondition, BlobRequestOptions, OperationContext) CloudBlob.DownloadRangeToByteArray(Byte[], Int32, Nullable<Int64>, Nullable<Int64>, AccessCondition, BlobRequestOptions, OperationContext) Method

Definition

Downloads a range of bytes from a blob to a byte array.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual int DownloadRangeToByteArray (byte[] target, int index, Nullable<long> blobOffset, Nullable<long> length, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member DownloadRangeToByteArray : byte[] * int * Nullable<int64> * Nullable<int64> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> int
override this.DownloadRangeToByteArray : byte[] * int * Nullable<int64> * Nullable<int64> * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> int
Parameters
target
Byte[]

The target byte array.

index
Int32 Int32

The starting offset in the byte array.

blobOffset
Nullable<Int64>

The starting offset of the data range, in bytes.

length
Nullable<Int64>

The length of the data to download from the blob, in bytes.

accessCondition
AccessCondition AccessCondition

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

options
BlobRequestOptions BlobRequestOptions

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

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