This function uploads the given file to the vc. The local file in its entirety will be uploaded. The destination stream will be created during this operation and cannot exist prior to upload.

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

Syntax

C#
public void Upload(
	string sourceFile,
	CosmosUri destinationStream,
	bool compression
)
Visual Basic
Public Sub Upload ( _
	sourceFile As String, _
	destinationStream As CosmosUri, _
	compression As Boolean _
)
Visual C++
public:
void Upload(
	String^ sourceFile, 
	CosmosUri^ destinationStream, 
	bool compression
)

Parameters

sourceFile
Type: String
The name of the file from which the data needs to be uploaded.
destinationStream
Type: CosmosUri
The name of the stream that needs to be created for the upload (i.e) the stream to which the data needs to be uploaded
compression
Type: Boolean
Whether compression should be used while transferring data to the VC.

See Also