FileSystemOperationsExtensions.SetTimesAsync Method (IFileSystemOperations, String, String, Int64, Int64)
Sets the access or modification time on 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 Task<AzureOperationResponse> SetTimesAsync(
this IFileSystemOperations operations,
string sourcePath,
string accountName,
long modificationTime,
long accessTime
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ SetTimesAsync(
IFileSystemOperations^ operations,
String^ sourcePath,
String^ accountName,
long long modificationTime,
long long accessTime
)
static member SetTimesAsync :
operations:IFileSystemOperations *
sourcePath:string *
accountName:string *
modificationTime:int64 *
accessTime:int64 -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function SetTimesAsync (
operations As IFileSystemOperations,
sourcePath As String,
accountName As String,
modificationTime As Long,
accessTime As Long
) As Task(Of 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 permissions on.
accountName
Type: System.StringRequired. The name of the account to use
modificationTime
Type: System.Int64Required. The modification time of a file/directory. If -1 remains unchanged
accessTime
Type: System.Int64Required. The access time of a file/directory. If -1 remains unchanged
Return Value
Type: System.Threading.Tasks.Task<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