共用方式為


IFileSystem.ConvertRemoteFileNameToRemoteUriAsync Method

Definition

Overloads

ConvertRemoteFileNameToRemoteUriAsync(String, CancellationToken)

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

ConvertRemoteFileNameToRemoteUriAsync(String, String, CancellationToken)

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

ConvertRemoteFileNameToRemoteUriAsync(String, CancellationToken)

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

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

Parameters

fileName
String

The fully qualified name for the remote file.

cancellationToken
CancellationToken

The cancellation token.

Returns

The remote Uri.

Remarks

Introduced in version FileSystem.

Applies to

ConvertRemoteFileNameToRemoteUriAsync(String, String, CancellationToken)

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

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

Parameters

fileName
String

The fully qualified name for the remote file.

remoteScheme
String

The desired scheme of the returned remote Uri.

cancellationToken
CancellationToken

The cancellation token.

Returns

The remote Uri.

Remarks

Introduced in version FileSystem.

Applies to