public static FindMoreRecentLastWriteTime ( |
||
fileNames | A collection of filenames to check the last write time against. | |
targetLastWriteTime | System.DateTime | The datetime to compare against. |
리턴 | string |
/// <summary> /// Determines if a file has a more recent last write time than the /// given time, or no longer exists. /// </summary> /// <param name="fileName">A file to check the last write time against.</param> /// <param name="targetLastWriteTime">The datetime to compare against.</param> /// <returns> /// The name of the file that has a last write time greater than /// <paramref name="targetLastWriteTime" /> or that no longer exists; /// otherwise, <see langword="null" />. /// </returns> public static string FindMoreRecentLastWriteTime(string fileName, DateTime targetLastWriteTime) { StringCollection fileNames = new StringCollection(); fileNames.Add(fileName); return(FileSet.FindMoreRecentLastWriteTime(fileNames, targetLastWriteTime)); }