C#
C++
F#
VB
ICloudBlob.::..DownloadToByteArrayAsync Method (Byte[], Int32, CancellationToken)(array<Byte>^, Int32, CancellationToken)(Byte[], Int32, CancellationToken)(Byte(), Int32, CancellationToken)
Initiates an asynchronous operation to download the contents of a blob to a byte array.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
Task<int> DownloadToByteArrayAsync( byte[] target, int index, CancellationToken cancellationToken )
C++
Task<int>^ DownloadToByteArrayAsync( array<unsigned char>^ target, int index, CancellationToken cancellationToken )
abstract DownloadToByteArrayAsync :
target:byte[] *
index:int *
cancellationToken:CancellationToken -> Task<int>
Function DownloadToByteArrayAsync ( target As Byte(), index As Integer, cancellationToken As CancellationToken ) As Task(Of Integer)
Parameters
- target
-
Type:
System.Byte[]array<System::Byte>^System.Byte[]System.Byte()
The target byte array.
- index
-
Type:
System.Int32System::Int32System.Int32System.Int32
The starting offset in the byte array.
- cancellationToken
-
Type:
System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Return Value
Type: System.Threading.Tasks.Task<Int32>System.Threading.Tasks::Task<Int32>^System.Threading.Tasks.Task<Int32>System.Threading.Tasks.Task(Of Int32)A Task object of type int that represents the asynchronous operation.
See Also
DownloadToByteArrayAsync Overload
ICloudBlob Interface
Microsoft.WindowsAzure.Storage.Blob Namespace