IFileSystem.GetMonikerForRemoteFileSystemProviderAsync(String, CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
Use GetMonikerForFileSystemProviderAsync instead.
Étant donné le schéma d’un fournisseur de système de fichiers, cette méthode récupère le du fournisseur ServiceMoniker .
Le moniker de service peut être utilisé pour créer un ServiceRpcDescriptor pour le fournisseur à l’aide de Microsoft.VisualStudio.VisualStudioServices.VS2019_6Services.CreateFileSystemProviderServiceDescriptor(Microsoft.ServiceHub.Framework.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)
Paramètres
- scheme
- String
Schéma du fournisseur.
- cancellationToken
- CancellationToken
Jeton d'annulation.
Retours
Moniker de service du fournisseur.
- Attributs
Exceptions
scheme a la valeur null.
Il n’existe aucun fournisseur de système de fichiers pour scheme .
Remarques
L’extraction d’un proxy pour l’interface du fournisseur IRemoteFileSystemProvider retourne la valeur null si le fournisseur ne prend pas en charge IRemoteFileSystemProvider .
Introduit dans la version Microsoft.VisualStudio.VisualStudioServices.VS2019_7Services.FileSystem .