Udostępnij za pośrednictwem


VsShellUtilities.ConvertLocalUriToRemoteUriAsync Method

Definition

Caution

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

Caution

Use IFileSystem.ConvertLocalUriToRemoteUriAsync instead

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

[System.Obsolete("Use IFileSystem.ConvertLocalUriToRemoteUriAsync instead.  This API will go away in 16.10.")]
public static System.Threading.Tasks.Task<Uri> ConvertLocalUriToRemoteUriAsync (Uri localUri, System.Threading.CancellationToken cancellationToken, string remoteScheme = "vsls");
[System.Obsolete("Use IFileSystem.ConvertLocalUriToRemoteUriAsync instead", true)]
public static System.Threading.Tasks.Task<Uri> ConvertLocalUriToRemoteUriAsync (Uri localUri, System.Threading.CancellationToken cancellationToken, string remoteScheme = "vsls");
[<System.Obsolete("Use IFileSystem.ConvertLocalUriToRemoteUriAsync instead.  This API will go away in 16.10.")>]
static member ConvertLocalUriToRemoteUriAsync : Uri * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task<Uri>
[<System.Obsolete("Use IFileSystem.ConvertLocalUriToRemoteUriAsync instead", true)>]
static member ConvertLocalUriToRemoteUriAsync : Uri * System.Threading.CancellationToken * string -> System.Threading.Tasks.Task<Uri>
Public Function ConvertLocalUriToRemoteUriAsync (localUri As Uri, cancellationToken As CancellationToken, Optional remoteScheme As String = "vsls") As Task(Of Uri)

Parameters

localUri
Uri

The local URI.

cancellationToken
CancellationToken

The cancellation token.

remoteScheme
String

The desired scheme of the returned remote URI.

Returns

The remote URI.

Attributes

Remarks

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

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

Applies to