Share via


IRemoteFileSystemProvider.ConvertLocalUriToRemoteUriAsync Method

Definition

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

public:
 System::Threading::Tasks::Task<Uri ^> ^ ConvertLocalUriToRemoteUriAsync(Uri ^ localUri, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Uri> ConvertLocalUriToRemoteUriAsync (Uri localUri, System.Threading.CancellationToken cancellationToken);
abstract member ConvertLocalUriToRemoteUriAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Function ConvertLocalUriToRemoteUriAsync (localUri As Uri, cancellationToken As CancellationToken) As Task(Of Uri)

Parameters

localUri
Uri

The local URI.

cancellationToken
CancellationToken

The cancellation token.

Returns

The remote URI.

Remarks

localUri can be a Uri returned from DownloadFileAsync(Uri, IProgress<OperationProgressData>, CancellationToken) or from ConvertRemoteUriToLocalUriAsync(Uri, CancellationToken).

Applies to