This function reads a stream from the virtual cluster and returns a stream object. The stream will be read from the specified offset for the given length.

Namespace: Microsoft.Cosmos.Management
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public Stream ReadStream(
	CosmosUri sourceStream,
	long offset,
	long length,
	bool compression
)
Visual Basic
Public Function ReadStream ( _
	sourceStream As CosmosUri, _
	offset As Long, _
	length As Long, _
	compression As Boolean _
) As Stream
Visual C++
public:
Stream^ ReadStream(
	CosmosUri^ sourceStream, 
	long long offset, 
	long long length, 
	bool compression
)

Parameters

sourceStream
Type: CosmosUri
complete path of the stream in vc:// or http:// format.
offset
Type: Int64
The position in the stream from which the stream should be read.
length
Type: Int64
The number of bytes to be read.
compression
Type: Boolean
Whether compression should be used while transferring data from the VC.

Return Value

A stream object representing the stream being read from the VC.

See Also