FileSystemOperationsExtensions.SetOwnerAsync Method

Definition

Sets the owner of a file or directory.

public static System.Threading.Tasks.Task SetOwnerAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string setOwnerFilePath, string owner = default, string group = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task SetOwnerAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string owner = default, string group = default, System.Threading.CancellationToken cancellationToken = default);
static member SetOwnerAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
static member SetOwnerAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SetOwnerAsync (operations As IFileSystemOperations, accountName As String, setOwnerFilePath As String, Optional owner As String = Nothing, Optional group As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
<Extension()>
Public Function SetOwnerAsync (operations As IFileSystemOperations, accountName As String, path As String, Optional owner As String = Nothing, Optional group As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

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.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to