This function uploads the given local file to cosmos cluster, while preserving the specified block boundaries. 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 UploadWithBlockBoundaries(
	string srcFile,
	CosmosUri destinationStream,
	long offset,
	List<long> blockOffsets,
	List<long> blockLengths,
	bool compression
)
Visual Basic
Public Sub UploadWithBlockBoundaries ( _
	srcFile As String, _
	destinationStream As CosmosUri, _
	offset As Long, _
	blockOffsets As List(Of Long), _
	blockLengths As List(Of Long), _
	compression As Boolean _
)
Visual C++
public:
void UploadWithBlockBoundaries(
	String^ srcFile, 
	CosmosUri^ destinationStream, 
	long long offset, 
	List<long long>^ blockOffsets, 
	List<long long>^ blockLengths, 
	bool compression
)

Parameters

srcFile
Type: String
The name of the file from which the data needs to be uploaded.
destinationStream
Type: CosmosUri
The name of the stream to which the data needs to be uploaded.
offset
Type: Int64
The position in the stream from which the stream should be copied.
blockOffsets
Type: List<(Of <(<'Int64>)>)>
The list of the offset of each block (ordered and continuous).
blockLengths
Type: List<(Of <(<'Int64>)>)>
The list of the length of each block (in the same order as blockOffsets).
compression
Type: Boolean
Whether compression should be used while transferring data to the VC.

See Also