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
operations
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperationsReference to the Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations.
sourcePath
Type: System.StringRequired. The path to the directory or file to set the owner on.
accountName
Type: System.StringRequired. The name of the account to use
owner
Type: System.StringOptional. The username who is the owner of a file/directory, if empty remains unchanged.
group
Type: System.StringOptional. 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