IFileSystemOperations.SetOwnerAsync Method (String, String, String, String, CancellationToken)
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
Task<AzureOperationResponse> SetOwnerAsync(
string sourcePath,
string accountName,
string owner,
string group,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ SetOwnerAsync(
String^ sourcePath,
String^ accountName,
String^ owner,
String^ group,
CancellationToken cancellationToken
)
abstract SetOwnerAsync :
sourcePath:string *
accountName:string *
owner:string *
group:string *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function SetOwnerAsync (
sourcePath As String,
accountName As String,
owner As String,
group As String,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
sourcePath
Type: System.StringThe path to the directory or file to set the owner on.
accountName
Type: System.StringThe name of the account to use
owner
Type: System.StringThe username who is the owner of a file/directory, if empty remains unchanged.
group
Type: System.StringThe name of a group, if empty remains unchanged.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
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