This function uploads the given byte array data to the VC. The destination stream will be
created during this operation and cannot exist prior to upload.
Namespace: Microsoft.Cosmos.ManagementAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public void Upload(
byte[] source,
CosmosUri destinationStream,
bool compression,
TimeSpan expirationTime
) |
Visual Basic |
---|
Public Sub Upload ( _
source As Byte(), _
destinationStream As CosmosUri, _
compression As Boolean, _
expirationTime As TimeSpan _
) |
Visual C++ |
---|
public:
void Upload(
array<unsigned char>^ source,
CosmosUri^ destinationStream,
bool compression,
TimeSpan expirationTime
) |
Parameters
- source
- Type: array<Byte>[]()[][]
The byte array that contains 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.
- expirationTime
- Type: TimeSpan
Time at which the stream should expire.
See Also