Expand Minimize
This topic has not yet been rated - Rate this topic

CloudPageBlob.OpenRead Method

Opens a stream for reading from the blob.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
'Usage
Dim instance As CloudPageBlob
Dim accessCondition As AccessCondition
Dim options As BlobRequestOptions
Dim operationContext As OperationContext
Dim returnValue As Stream

returnValue = instance.OpenRead(accessCondition, options, operationContext)
public Stream OpenRead (
	[OptionalAttribute] AccessCondition accessCondition,
	[OptionalAttribute] BlobRequestOptions options,
	[OptionalAttribute] OperationContext operationContext
)
public Stream OpenRead (
	/** @attribute OptionalAttribute() */ AccessCondition accessCondition, 
	/** @attribute OptionalAttribute() */ BlobRequestOptions options, 
	/** @attribute OptionalAttribute() */ OperationContext operationContext
)
public function OpenRead (
	accessCondition : AccessCondition, 
	options : BlobRequestOptions, 
	operationContext : OperationContext
) : Stream

Parameters

accessCondition

An AccessCondition object that represents the access conditions for the blob. If null, no condition is used.

options

A BlobRequestOptions object that specifies any additional options for the request.

operationContext

An OperationContext object that represents the context for the current operation.

Return Value

A stream to be used for reading from the blob.

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


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

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter