NAnt SDK Documentation - v0.85-nightly-2005-11-09

DirectoryFunctions.GetLastWriteTime Method 

[This is preliminary documentation and subject to change.]

Returns the date and time the specified directory was last written to.

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

Parameters

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

Return Value

The date and time the specified directory was last written to.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.DirectoryFunctions.GetLastWriteTime(System.String)

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.

See Also

DirectoryFunctions Class | NAnt.Core.Functions Namespace