C#
C++
F#
VB
CloudFile.::..BeginDownloadRangeToStream Method (Stream, Nullable<Int64>, Nullable<Int64>, AsyncCallback, Object)(Stream^, Nullable<Int64>, Nullable<Int64>, AsyncCallback^, Object^)(Stream, Nullable<Int64>, Nullable<Int64>, AsyncCallback, Object)(Stream, Nullable(Of Int64), Nullable(Of Int64), AsyncCallback, Object)
Begins an asynchronous operation to download the contents of a file to a stream.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual ICancellableAsyncResult BeginDownloadRangeToStream( Stream target, Nullable<long> offset, Nullable<long> length, AsyncCallback callback, object state )
C++
public: [DoesServiceRequestAttribute] virtual ICancellableAsyncResult^ BeginDownloadRangeToStream( Stream^ target, Nullable<long long> offset, Nullable<long long> length, AsyncCallback^ callback, Object^ state )
[<DoesServiceRequestAttribute>] abstract BeginDownloadRangeToStream : target:Stream * offset:Nullable<int64> * length:Nullable<int64> * callback:AsyncCallback * state:Object -> ICancellableAsyncResult [<DoesServiceRequestAttribute>] override BeginDownloadRangeToStream : target:Stream * offset:Nullable<int64> * length:Nullable<int64> * callback:AsyncCallback * state:Object -> ICancellableAsyncResult
<DoesServiceRequestAttribute> Public Overridable Function BeginDownloadRangeToStream ( target As Stream, offset As Nullable(Of Long), length As Nullable(Of Long), callback As AsyncCallback, state As Object ) As ICancellableAsyncResult
Parameters
- target
-
Type:
System.IO.StreamSystem.IO::Stream^System.IO.StreamSystem.IO.Stream
The target stream.
- offset
-
Type:
System.Nullable<Int64>System::Nullable<Int64>System.Nullable<Int64>System.Nullable(Of Int64)
The starting offset of the data range, in bytes.
- length
-
Type:
System.Nullable<Int64>System::Nullable<Int64>System.Nullable<Int64>System.Nullable(Of Int64)
The length of the data range, in bytes.
- 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
BeginDownloadRangeToStream Overload
CloudFile Class
Microsoft.WindowsAzure.Storage.File Namespace