This function reads a stream from the virtual cluster and returns a stream object. The stream will be read from the beginning and until the end of the stream is reached.

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,
	bool compression
)
Visual Basic
Public Function ReadStream ( _
	sourceStream As CosmosUri, _
	compression As Boolean _
) As Stream
Visual C++
public:
Stream^ ReadStream(
	CosmosUri^ sourceStream, 
	bool compression
)

Parameters

sourceStream
Type: CosmosUri
complete path of the stream in vc:// or http:// format.
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