CloudBlockBlob.EndOpenRead Method

Ends an asynchronous operation to open a stream for reading from the blob.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Syntax

'Declaration
Public Function EndOpenRead ( _
    asyncResult As IAsyncResult _
) As Stream
public Stream EndOpenRead (
    IAsyncResult asyncResult
)
public:
virtual Stream^ EndOpenRead (
    IAsyncResult^ asyncResult
) sealed

Parameters

  • asyncResult
    An IAsyncResult that references the pending asynchronous operation.

Return Value

A Stream object to be used for reading from the blob.

Remarks

On the Stream object returned by this method, the EndRead method must be called exactly once for every BeginRead call. Failing to end the read process before beginning another read process can cause unexpected behavior.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

See Also

Reference

CloudBlockBlob Class
CloudBlockBlob Members
Microsoft.WindowsAzure.Storage.Blob Namespace