C#
C++
F#
VB
CloudFile.::..BeginDownloadToByteArray Method (Byte[], Int32, AsyncCallback, Object)(array<Byte>^, Int32, AsyncCallback^, Object^)(Byte[], Int32, AsyncCallback, Object)(Byte(), Int32, AsyncCallback, Object)
Begins an asynchronous operation to download the contents of a file to a byte array.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual ICancellableAsyncResult BeginDownloadToByteArray( byte[] target, int index, AsyncCallback callback, object state )
C++
public: [DoesServiceRequestAttribute] virtual ICancellableAsyncResult^ BeginDownloadToByteArray( array<unsigned char>^ target, int index, AsyncCallback^ callback, Object^ state )
[<DoesServiceRequestAttribute>] abstract BeginDownloadToByteArray : target:byte[] * index:int * callback:AsyncCallback * state:Object -> ICancellableAsyncResult [<DoesServiceRequestAttribute>] override BeginDownloadToByteArray : target:byte[] * index:int * callback:AsyncCallback * state:Object -> ICancellableAsyncResult
<DoesServiceRequestAttribute> Public Overridable Function BeginDownloadToByteArray ( target As Byte(), index As Integer, callback As AsyncCallback, state As Object ) As ICancellableAsyncResult
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.
- callback
-
Type:
System.AsyncCallbackSystem::AsyncCallback^System.AsyncCallbackSystem.AsyncCallback
The callback delegate that will receive notification when the asynchronous operation completes.
- state
-
Type:
System.ObjectSystem::Object^System.ObjectSystem.Object
A user-defined object that will be passed to the callback delegate.
Return Value
Type: Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage::ICancellableAsyncResult^Microsoft.WindowsAzure.Storage.ICancellableAsyncResultMicrosoft.WindowsAzure.Storage.ICancellableAsyncResultAn ICancellableAsyncResult that references the asynchronous operation.
See Also
BeginDownloadToByteArray Overload
CloudFile Class
Microsoft.WindowsAzure.Storage.File Namespace