FileSystemOperationsExtensions.SetPermissionAsync 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.
Sets the permission of the file or folder.
public static System.Threading.Tasks.Task SetPermissionAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string setPermissionFilePath, string permission = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task SetPermissionAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string permission = default, System.Threading.CancellationToken cancellationToken = default);
static member SetPermissionAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
static member SetPermissionAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SetPermissionAsync (operations As IFileSystemOperations, accountName As String, setPermissionFilePath As String, Optional permission As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
<Extension()>
Public Function SetPermissionAsync (operations As IFileSystemOperations, accountName As String, path As String, Optional permission As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- operations
- IFileSystemOperations
The operations group for this extension method.
- accountName
- String
The Azure Data Lake Store account to execute filesystem operations on.
- setPermissionFilePathpath
- String
The Data Lake Store path (starting with '/') of the file or directory for which to set the permission.
- permission
- String
A string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged.
- cancellationToken
- CancellationToken
The cancellation token.