VsShellUtilities.DownloadFileAsync Method

Definition

Caution

Use IFileSystem.DownloadFileAsync instead. This API will go away in 16.10.

Caution

Use IFileSystem.DownloadFileAsync instead

Downloads a remote file if it has not already been downloaded.

C++
public:
 static System::Threading::Tasks::Task<Uri ^> ^ DownloadFileAsync(Uri ^ remoteUri, IProgress<Microsoft::VisualStudio::RpcContracts::FileSystem::OperationProgressData> ^ progress, System::Threading::CancellationToken cancellationToken);

Parameters

remoteUri
Uri

The URI of the file to download.

progress
IProgress<OperationProgressData>

The interface through which progress is reported (optional).

cancellationToken
CancellationToken

The cancellation token.

Returns

The URI of the local file.

Attributes

Remarks

If the provider does not support IRemoteFileSystemProvider, remoteUri is returned.

Applies to

Proizvod Verzije (Zastarjelo)
Visual Studio SDK (2019, 2022)