共用方式為


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.

public:
 static System::Threading::Tasks::Task<Uri ^> ^ ConvertRemoteUriToLocalUriAsync(Uri ^ remoteUri, System::Threading::CancellationToken cancellationToken);
[System.Obsolete("Use IFileSystem.ConvertRemoteUriToLocalUriAsync instead.  This API will go away in 16.10.")]
public static System.Threading.Tasks.Task<Uri> ConvertRemoteUriToLocalUriAsync (Uri remoteUri, System.Threading.CancellationToken cancellationToken);
[System.Obsolete("Use IFileSystem.ConvertRemoteUriToLocalUriAsync instead", true)]
public static System.Threading.Tasks.Task<Uri> ConvertRemoteUriToLocalUriAsync (Uri remoteUri, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use IFileSystem.ConvertRemoteUriToLocalUriAsync instead.  This API will go away in 16.10.")>]
static member ConvertRemoteUriToLocalUriAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
[<System.Obsolete("Use IFileSystem.ConvertRemoteUriToLocalUriAsync instead", true)>]
static member ConvertRemoteUriToLocalUriAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Function ConvertRemoteUriToLocalUriAsync (remoteUri As Uri, cancellationToken As CancellationToken) As Task(Of Uri)

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