Condividi tramite


IFileSystemAuthorizationService.GetAccessAsync Method

Definition

Get access level of files and directories.

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

Parameters

uris
IReadOnlyList<Uri>

Array of file or directory URIs to get the access level for.

cancellationToken
CancellationToken

Cancellation token.

Returns

A collection of access levels for the given list of file or directory URIs.

Exceptions

If uris is null.

If uris is empty or contains null URIs.

Applies to