AdlsClient.CheckAccessAsync(String, String, CancellationToken) 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.
Asynchronously checks if the user/group has specified access of the given path
public virtual System.Threading.Tasks.Task<bool> CheckAccessAsync (string path, string rwx, System.Threading.CancellationToken cancelToken = default);
abstract member CheckAccessAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CheckAccessAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CheckAccessAsync (path As String, rwx As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- path
- String
Path of the file or directory
- rwx
- String
Permission to check in "rwx" string form. For example if the user wants to see if it has read, execute permission, the string would be r-x
- cancelToken
- CancellationToken
CancellationToken to cancel the request
Returns
True if client has access to the path else false
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for