Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 C# 中读取文件的修改日期?
我可以使用以下代码读取文件的创建日期:
ModifyDate = File.GetCreationTime(FilePath)
File.GetLastWriteTime将完成这项工作
我相信您正在寻找GetLastWriteTime