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

 

Sets the owner of a 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 SetOwner(
    this IFileSystemOperations operations,
    string sourcePath,
    string accountName,
    string owner,
    string group
)
public:
[ExtensionAttribute]
static AzureOperationResponse^ SetOwner(
    IFileSystemOperations^ operations,
    String^ sourcePath,
    String^ accountName,
    String^ owner,
    String^ group
)
static member SetOwner : 
        operations:IFileSystemOperations *
        sourcePath:string *
        accountName:string *
        owner:string *
        group:string -> AzureOperationResponse
<ExtensionAttribute>
Public Shared Function SetOwner (
    operations As IFileSystemOperations,
    sourcePath As String,
    accountName As String,
    owner As String,
    group As String
) As AzureOperationResponse

Parameters

  • sourcePath
    Type: System.String

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

  • accountName
    Type: System.String

    Required. The name of the account to use

  • owner
    Type: System.String

    Optional. The username who is the owner of a file/directory, if empty remains unchanged.

  • group
    Type: System.String

    Optional. The name of a group, if empty remains unchanged.

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