VsShellUtilities.ConvertRemoteUriToLocalUriAsync Method

Definition

Caution

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

Caution

Use IFileSystem.ConvertRemoteUriToLocalUriAsync instead

Converts a remote URI using the provider's URI scheme to a local URI.

C++
public:
 static System::Threading::Tasks::Task<Uri ^> ^ ConvertRemoteUriToLocalUriAsync(Uri ^ remoteUri, System::Threading::CancellationToken cancellationToken);

Parameters

remoteUri
Uri

The remote URI.

cancellationToken
CancellationToken

The cancellation token.

Returns

The local URI.

Attributes

Remarks

The local file may not exist if it has not been downloaded. Use the DownloadFileAsync(Uri, IProgress<OperationProgressData>, CancellationToken) method to ensure the file has been downloaded.

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

Applies to

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