Click or drag to resize

MessageClientDownloadFile Method

Download a file object, save the file to pointed destination.

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public void DownloadFile(
	RemoteFile file,
	string to,
	Action<SparkApiEventArgs<int>> progressHandler
)

Parameters

file
Type: SparkSDKRemoteFile
The RemoteFile object need to be downloaded.
to
Type: SystemString
The local file directory for saving downloaded file.
progressHandler
Type: SystemActionSparkApiEventArgsInt32
The download progress indicator.
See Also