C#
C++
F#
VB
CloudFile.::..OpenReadAsync Method (CancellationToken)(CancellationToken)(CancellationToken)(CancellationToken)
Returns a task that performs an asynchronous operation to open a stream for reading from the file.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
[DoesServiceRequestAttribute] public virtual Task<Stream> OpenReadAsync( CancellationToken cancellationToken )
C++
public: [DoesServiceRequestAttribute] virtual Task<Stream^>^ OpenReadAsync( CancellationToken cancellationToken )
[<DoesServiceRequestAttribute>] abstract OpenReadAsync : cancellationToken:CancellationToken -> Task<Stream> [<DoesServiceRequestAttribute>] override OpenReadAsync : cancellationToken:CancellationToken -> Task<Stream>
<DoesServiceRequestAttribute> Public Overridable Function OpenReadAsync ( cancellationToken As CancellationToken ) As Task(Of Stream)
Parameters
- 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<Stream>System.Threading.Tasks::Task<Stream^>^System.Threading.Tasks.Task<Stream>System.Threading.Tasks.Task(Of Stream)A Task<TResult><TResult><'TResult>(Of TResult) object that represents the current operation.