System::IO::File::SetLastWriteTime 方法

File::SetLastWriteTime method

将指定实体的最后写入时间设置为本地时间。

static void System::IO::File::SetLastWriteTime(const String &path, DateTime lastWriteTime)
ParameterType描述
路径const String&要设置最后写入时间的实体
lastWriteTimeDateTime一个 DateTime 对象,表示要设置为本地时间的时间

另见