FileSystemOperationsExtensions.SetPermission Method (IFileSystemOperations, String, String, String)

 

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

public static AzureOperationResponse SetPermission(
    this IFileSystemOperations operations,
    string sourcePath,
    string accountName,
    string permission
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ SetPermission(
    IFileSystemOperations^ operations,
    String^ sourcePath,
    String^ accountName,
    String^ permission
)
static member SetPermission : 
        operations:IFileSystemOperations *
        sourcePath:string *
        accountName:string *
        permission:string -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function SetPermission (
    operations As IFileSystemOperations,
    sourcePath As String,
    accountName As String,
    permission As String
) As AzureOperationResponse

Parameters

  • sourcePath
    Type: System.String

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

  • accountName
    Type: System.String

    Required. The name of the account to use

  • permission
    Type: System.String

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

Return Value

Type: Microsoft.Azure.AzureOperationResponse

A standard service response including an HTTP status code and request ID.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top