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.String

    The path to the directory or file to set permissions on.

  • permission
    Type: System.String

    A string octal representation of the permission (i.e 'rwx')

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