Compartir a través de


IFileSystem.ConvertLocalUriToRemoteUriAsync Method

Definition

Overloads

ConvertLocalUriToRemoteUriAsync(Uri, CancellationToken)

Converts a local Uri to a remote Uri using the provider for the scheme returned by GetDefaultRemoteUriSchemeAsync(CancellationToken).

ConvertLocalUriToRemoteUriAsync(Uri, String, CancellationToken)

Converts a local Uri to a remote Uri using the provider for remoteScheme.

ConvertLocalUriToRemoteUriAsync(Uri, CancellationToken)

Converts a local Uri to a remote Uri using the provider for the scheme returned by GetDefaultRemoteUriSchemeAsync(CancellationToken).

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 one of the following methods: If the provider does not support IRemoteFileSystemProvider, localUri is returned.

Introduced in version FileSystem.

Applies to

ConvertLocalUriToRemoteUriAsync(Uri, String, CancellationToken)

Converts a local Uri to a remote Uri using the provider for remoteScheme.

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

Parameters

localUri
Uri

The local Uri.

remoteScheme
String

The desired scheme of the returned remote Uri.

cancellationToken
CancellationToken

The cancellation token.

Returns

The remote Uri.

Remarks

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

Introduced in version FileSystem.

Applies to