gpt4 book ai didi

c# - FileSystemWatcher OnOpened 事件

转载 作者:行者123 更新时间:2023-11-30 14:40:23 25 4
gpt4 key购买 nike

在 .Net 中,我如何监控文件是否已被其他程序访问(打开)?我在 FileSystemWatcher 中看不到 OnOpened 事件,所以我认为它不能那样做。还有其他方法吗?这在 Windows 中显然是可能的,.Net 是否提供某种 Hook ?

最佳答案

检查 NotifyFilters 属性。您可能想要查看访问日期/时间的变化。

关于c# - FileSystemWatcher OnOpened 事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5333186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com