directory class : LastAccessTime(string) setter

Description

Sets a date and time when the directory was last accessed.

Syntax

directoryInstance.LastAccessTime = value

Assigned value

ClassDescription
stringA date and time when the directory was last accessed.

Return value

None

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

dir.LastAccessTime = "3/04/2016 4:13:00";

Notes

It's a wrapper of the System.IO.DirectoryInfo.LastAccessTime property.

The assigned value need to be a string that can convert to the C#'s DateTime type.

Links for reference

Copyright © Cooker All rights reserved.