FileSystemOperationsExtensions.SetOwner Method

Definition

Sets the owner of a file or directory.

public static void SetOwner (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string setOwnerFilePath, string owner = default, string group = default);
public static void SetOwner (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string owner = default, string group = default);
static member SetOwner : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * string -> unit
static member SetOwner : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * string -> unit
<Extension()>
Public Sub SetOwner (operations As IFileSystemOperations, accountName As String, setOwnerFilePath As String, Optional owner As String = Nothing, Optional group As String = Nothing)
<Extension()>
Public Sub SetOwner (operations As IFileSystemOperations, accountName As String, path As String, Optional owner As String = Nothing, Optional group As String = Nothing)

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

The Azure Data Lake Store account to execute filesystem operations on.

setOwnerFilePathpath
String

The Data Lake Store path (starting with '/') of the file or directory for which to set the owner.

owner
String

The AAD Object ID of the user owner of the file or directory. If empty, the property will remain unchanged.

group
String

The AAD Object ID of the group owner of the file or directory. If empty, the property will remain unchanged.

Applies to