IFileSystemAuthorizationService.GetAccessAsync Yöntem

Tanım

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

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::FileSystem::FileSystemAccessLevel> ^> ^ GetAccessAsync(System::Collections::Generic::IReadOnlyList<Uri ^> ^ uris, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.FileSystem.FileSystemAccessLevel>> GetAccessAsync (System.Collections.Generic.IReadOnlyList<Uri> uris, System.Threading.CancellationToken cancellationToken);
abstract member GetAccessAsync : System.Collections.Generic.IReadOnlyList<Uri> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.FileSystem.FileSystemAccessLevel>>
Public Function GetAccessAsync (uris As IReadOnlyList(Of Uri), cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of FileSystemAccessLevel))

Parametreler

uris
IReadOnlyList<Uri>

Erişim düzeyini almak için dosya veya dizin URI 'Leri dizisi.

cancellationToken
CancellationToken

İptal belirteci.

Döndürülenler

Task<IReadOnlyList<FileSystemAccessLevel>>

Verilen dosya veya dizin URI 'Leri listesi için erişim düzeyleri koleksiyonu.

Özel durumlar

urisNull ise.

urisBoşsa veya null URI 'ler içeriyorsa.

Şunlara uygulanır