NAnt SDK Documentation - v0.92

FileSet.FindMoreRecentLastWriteTime Method (String, DateTime)

Determines if a file has a more recent last write time than the given time, or no longer exists.

[Visual Basic]
Overloads Public Shared Function FindMoreRecentLastWriteTime( _
   ByVal fileName As String, _
   ByVal targetLastWriteTime As Date _
) As String
[C#]
public static string FindMoreRecentLastWriteTime(
   string fileName,
   DateTime targetLastWriteTime
);

Parameters

fileName
A file to check the last write time against.
targetLastWriteTime
The datetime to compare against.

Return Value

The name of the file that has a last write time greater than targetLastWriteTime or that no longer exists; otherwise, a null reference (Nothing in Visual Basic).

See Also

FileSet Class | NAnt.Core.Types Namespace | FileSet.FindMoreRecentLastWriteTime Overload List