IFileSystemAuthorizationService.GetLocalAccessAsync Method

Definition

Get access level of local files and directories.

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

Parameters

localPaths
IReadOnlyList<String>

Array of local absolute paths to get the access level for.

cancellationToken
CancellationToken

Cancellation token.

Returns

A collection of access levels for the given list of local paths.

Exceptions

If localPaths is null.

If localPaths is empty or contains null or invalid paths.

Applies to