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: VcClientAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public static void Upload(
string sourceFile,
string destinationStream,
bool compression,
TimeSpan expirationTime
) |
Visual Basic |
---|
Public Shared Sub Upload ( _
sourceFile As String, _
destinationStream As String, _
compression As Boolean, _
expirationTime As TimeSpan _
) |
Visual C++ |
---|
public:
static void Upload(
String^ sourceFile,
String^ destinationStream,
bool compression,
TimeSpan expirationTime
) |
Parameters
- sourceFile
- Type: String
The name of the file from which the data needs to be uploaded.
- destinationStream
- Type: String
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