This function downloads a stream on the virtual cluster to the local machine. The download will start at the specified offset and copy "length" number of bytes.

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

Syntax

C#
public void Download(
	CosmosUri sourceStream,
	string destinationFile,
	long offset,
	long length,
	bool compression,
	bool overwrite
)
Visual Basic
Public Sub Download ( _
	sourceStream As CosmosUri, _
	destinationFile As String, _
	offset As Long, _
	length As Long, _
	compression As Boolean, _
	overwrite As Boolean _
)
Visual C++
public:
void Download(
	CosmosUri^ sourceStream, 
	String^ destinationFile, 
	long long offset, 
	long long length, 
	bool compression, 
	bool overwrite
)

Parameters

sourceStream
Type: CosmosUri
Complete path of the stream in vc:// or http:// format.
destinationFile
Type: String
The path/name of the file where the stream needs to be copied to.
offset
Type: Int64
The position in the stream from which the stream should be copied.
length
Type: Int64
The number of bytes to be read.
compression
Type: Boolean
Whether compression should be used while transferring data from the VC.
overwrite
Type: Boolean
Passing true for this parameter will delete the destination file if it exists. Passing false will throw an exception, if the destination file already exists.

See Also