IFileSystemAuthorizationService.GetLocalAccessAsync(IReadOnlyList<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.
Obtient le niveau d’accès des fichiers et répertoires locaux.
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::FileSystem::FileSystemAccessLevel> ^> ^ GetLocalAccessAsync(System::Collections::Generic::IReadOnlyList<System::String ^> ^ localPaths, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.FileSystem.FileSystemAccessLevel>> GetLocalAccessAsync (System.Collections.Generic.IReadOnlyList<string> localPaths, System.Threading.CancellationToken cancellationToken);
abstract member GetLocalAccessAsync : System.Collections.Generic.IReadOnlyList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.FileSystem.FileSystemAccessLevel>>
Public Function GetLocalAccessAsync (localPaths As IReadOnlyList(Of String), cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of FileSystemAccessLevel))
Paramètres
- localPaths
- IReadOnlyList<String>
Tableau de chemins d’accès absolus locaux pour lesquels obtenir le niveau d’accès.
- cancellationToken
- CancellationToken
Jeton d'annulation.
Retours
Collection de niveaux d’accès pour la liste donnée de chemins d’accès locaux.
Exceptions
Si localPaths a la valeur null.
Si localPaths est vide ou contient des chemins d’accès null ou non valides.