IFileSystemAuthorizationService.GetLocalAccessAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.