IFileSystem.ConvertLocalFileNameToRemoteUriAsync 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
ConvertLocalFileNameToRemoteUriAsync(String, CancellationToken) |
Converts a local filename to a remote Uri using the provider for the scheme returned by GetDefaultRemoteUriSchemeAsync(CancellationToken). |
ConvertLocalFileNameToRemoteUriAsync(String, String, CancellationToken) |
Converts a local filename to a remote Uri using the provider for
|
ConvertLocalFileNameToRemoteUriAsync(String, CancellationToken)
Converts a local filename to a remote Uri using the provider for the scheme returned by GetDefaultRemoteUriSchemeAsync(CancellationToken).
public:
System::Threading::Tasks::Task<Uri ^> ^ ConvertLocalFileNameToRemoteUriAsync(System::String ^ fileName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Uri> ConvertLocalFileNameToRemoteUriAsync (string fileName, System.Threading.CancellationToken cancellationToken);
abstract member ConvertLocalFileNameToRemoteUriAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Function ConvertLocalFileNameToRemoteUriAsync (fileName As String, cancellationToken As CancellationToken) As Task(Of Uri)
Parameters
- fileName
- String
The fully qualified name for the local file.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The remote Uri.
Remarks
If the provider does not support IRemoteFileSystemProvider, a Uri created from fileName
is returned.
Introduced in version FileSystem.
Applies to
ConvertLocalFileNameToRemoteUriAsync(String, String, CancellationToken)
Converts a local filename to a remote Uri using the provider for
remoteScheme
.
public:
System::Threading::Tasks::Task<Uri ^> ^ ConvertLocalFileNameToRemoteUriAsync(System::String ^ fileName, System::String ^ remoteScheme, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Uri> ConvertLocalFileNameToRemoteUriAsync (string fileName, string remoteScheme, System.Threading.CancellationToken cancellationToken);
abstract member ConvertLocalFileNameToRemoteUriAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Uri>
Public Function ConvertLocalFileNameToRemoteUriAsync (fileName As String, remoteScheme As String, cancellationToken As CancellationToken) As Task(Of Uri)
Parameters
- fileName
- String
The fully qualified name for the local file.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The remote Uri.
Remarks
If the provider does not support IRemoteFileSystemProvider, a Uri created from fileName
is returned.
Introduced in version FileSystem.