NAnt SDK Documentation - v0.92 |

# FileSet.FindMoreRecentLastWriteTime Method (StringCollection, DateTime)

Determines if one of the given files has a more recent last write time than the given time. If one of the given files no longer exists, the target will be considered out-of-date.

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

#### Parameters

fileNames
  A collection of filenames to check the last write time against.
targetLastWriteTime
  The datetime to compare against.

#### Return Value

The name of the first file that has a last write time greater than targetLastWriteTime; otherwise, null.

#### See Also

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