Share via


IFileSystem.GetMonikerForRemoteFileSystemProviderAsync Method

Definition

Caution

Use GetMonikerForFileSystemProviderAsync instead.

Given the scheme for a file system provider, this method retrieves the provider's ServiceMoniker.

The service moniker can be used to create a ServiceRpcDescriptor for the provider using CreateFileSystemProviderServiceDescriptor(ServiceMoniker).

public:
 System::Threading::Tasks::Task<Microsoft::ServiceHub::Framework::ServiceMoniker ^> ^ GetMonikerForRemoteFileSystemProviderAsync(System::String ^ scheme, System::Threading::CancellationToken cancellationToken);
[System.Obsolete("Use GetMonikerForFileSystemProviderAsync instead.")]
public System.Threading.Tasks.Task<Microsoft.ServiceHub.Framework.ServiceMoniker> GetMonikerForRemoteFileSystemProviderAsync (string scheme, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use GetMonikerForFileSystemProviderAsync instead.")>]
abstract member GetMonikerForRemoteFileSystemProviderAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.ServiceHub.Framework.ServiceMoniker>
Public Function GetMonikerForRemoteFileSystemProviderAsync (scheme As String, cancellationToken As CancellationToken) As Task(Of ServiceMoniker)

Parameters

scheme
String

The scheme for the provider.

cancellationToken
CancellationToken

The cancellation token.

Returns

The provider's service moniker.

Attributes

Exceptions

scheme is null.

There is no file system provider for scheme.

Remarks

Fetching a proxy for the provider's IRemoteFileSystemProvider interface will return null if the provider does not support IRemoteFileSystemProvider.

Introduced in version FileSystem.

Applies to