CloudBlob.EndOpenRead(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ends an asynchronous operation to open a stream for reading from the blob.
public virtual System.IO.Stream EndOpenRead(IAsyncResult asyncResult);
abstract member EndOpenRead : IAsyncResult -> System.IO.Stream
override this.EndOpenRead : IAsyncResult -> System.IO.Stream
Public Overridable Function EndOpenRead (asyncResult As IAsyncResult) As Stream
Parameters
- asyncResult
- System.IAsyncResult
An System.IAsyncResult that references the pending asynchronous operation.
Returns
A System.IO.Stream object to be used for reading from the blob.
Remarks
On the System.IO.Stream object returned by this method, the System.IO.Stream.EndRead(System.IAsyncResult) method must be called exactly once for every System.IO.Stream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object) call. Failing to end the read process before beginning another read process can cause unexpected behavior.