IFileSystemOperations.SetPermissionAsync Method (String, String, String, CancellationToken)
Sets the permission of the file or folder.
Namespace: Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly: Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)
Syntax
Task<AzureOperationResponse> SetPermissionAsync(
string sourcePath,
string accountName,
string permission,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ SetPermissionAsync(
String^ sourcePath,
String^ accountName,
String^ permission,
CancellationToken cancellationToken
)
abstract SetPermissionAsync :
sourcePath:string *
accountName:string *
permission:string *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function SetPermissionAsync (
sourcePath As String,
accountName As String,
permission As String,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
sourcePath
Type: System.StringThe path to the directory or file to set permissions on.
accountName
Type: System.StringThe name of the account to use
permission
Type: System.StringA string octal representation of the permission (i.e 'rwx')
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
A standard service response including an HTTP status code and request ID.
See Also
IFileSystemOperations Interface
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace
Return to top