Summary
Returns the date and time the specified file was last accessed.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- FileFunctions
Syntax
[Function("get-last-access-time")]
public DateTime GetLastAccessTime(string path)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
path | string | The file for which to obtain access date and time information. |
Return Value
Type | Description |
---|---|
DateTime | The date and time the specified file was last accessed. |