다음을 통해 공유


IFileSystem.ConvertLocalFileNameToRemoteUriAsync Method

Definition

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 remoteScheme.

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.

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, a Uri created from fileName is returned.

Introduced in version FileSystem.

Applies to