NAnt SDK Documentation - v0.92

DirectoryFunctions.GetLastAccessTime Method 

Returns the date and time the specified directory was last accessed.

[Visual Basic]
<Function(Name:="get-last-access-time")>
Public Function GetLastAccessTime( _
   ByVal path As String _
) As Date
[C#]
[Function(Name="get-last-access-time")]
public DateTime GetLastAccessTime(
   string path
);

Parameters

path
The directory for which to obtain access date and time information.

Return Value

The date and time the specified directory was last accessed.

Exceptions

Exception Type Condition
IOException The specified directory does not exist.
ArgumentException path is a zero-length string, contains only white space, or contains one or more invalid characters.
PathTooLongException The specified path, file name, or both exceed the system-defined maximum length.
NotSupportedException The path parameter is in an invalid format.

See Also

DirectoryFunctions Class | NAnt.Core.Functions Namespace