IFileSystem.ConvertLocalUriToRemoteUriAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
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
- 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)
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
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The remote Uri.
Remarks
If the provider does not support IRemoteFileSystemProvider, localUri
is returned.
Introduced in version FileSystem.