IRemoteFileSystemProvider.DownloadFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Downloads a remote file if it has not already been downloaded.
public:
System::Threading::Tasks::Task<Uri ^> ^ DownloadFileAsync(Uri ^ uri, IProgress<Microsoft::VisualStudio::RpcContracts::FileSystem::OperationProgressData> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Uri> DownloadFileAsync (Uri uri, IProgress<Microsoft.VisualStudio.RpcContracts.FileSystem.OperationProgressData>? progress, System.Threading.CancellationToken cancellationToken);
abstract member DownloadFileAsync : Uri * IProgress<Microsoft.VisualStudio.RpcContracts.FileSystem.OperationProgressData> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Function DownloadFileAsync (uri As Uri, progress As IProgress(Of OperationProgressData), cancellationToken As CancellationToken) As Task(Of Uri)
Parameters
- uri
- Uri
The URI of the file to download.
- progress
- IProgress<OperationProgressData>
The interface through which progress is reported.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The URI of the local file.