IDownloadServiceDownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) Method |
Asynchronously downloads a file from the specified URL and saves it to the specified directory.
Namespace: DownloaderAssembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
SyntaxTask DownloadFileTaskAsync(
string[] urls,
DirectoryInfo folder,
CancellationToken cancellationToken = default
)
Parameters
- urls String
- The download URLs of a file to download as parallel with mirror links.
- folder DirectoryInfo
- The local directory to save the downloaded file in.
- cancellationToken CancellationToken (Optional)
- A cancellation token that can be used to cancel the download operation.
Return Value
TaskA Task object that represents the asynchronous download operation.
See Also