## Directory::SetLastWriteTime method


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

```cpp
static void System::IO::Directory::SetLastWriteTime(const String &path, DateTime date)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要设置最后写入时间的实体 |
| date | DateTime | 一个 [DateTime](../../../system/datetime/) 对象，表示要设置为本地时间的时间 |

## 另见

* Class [String](../../../system/string/)
* Class [DateTime](../../../system/datetime/)
* Class [Directory](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
