IFileSystemAuthorizationService.GetLocalAccessAsync Yöntem

Tanım

Yerel dosya ve dizinlerin erişim düzeyini alın.

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))

Parametreler

localPaths
IReadOnlyList<String>

İçin erişim düzeyini almak üzere yerel mutlak yollar dizisi.

cancellationToken
CancellationToken

İptal belirteci.

Döndürülenler

Task<IReadOnlyList<FileSystemAccessLevel>>

Verilen yerel yollar listesi için erişim düzeyleri koleksiyonu.

Özel durumlar

localPathsNull ise.

localPathsBoşsa veya null ya da geçersiz yollar içeriyorsa.

Şunlara uygulanır