IDownloadServiceDownloadFileTaskAsync(String, String, CancellationToken) Method |
Asynchronously downloads a file from the specified URL and saves it to the specified file name.
Namespace: DownloaderAssembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
SyntaxTask DownloadFileTaskAsync(
string address,
string fileName,
CancellationToken cancellationToken = default
)
Parameters
- address String
- The download URL of the file to download.
- fileName String
- The local file name to save the downloaded file as.
- 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