出于好奇,是否可以实现使用 FileSystemWatcher 时引发各种事件的时间间隔?
谢谢!
请您参考如下方法:
FileSystemWatcher.WaitForChanged 重载了超时:
A synchronous method that returns a structure that contains specific information on the change that occurred, given the type of change you want to monitor and the time (in milliseconds) to wait before timing out.
因此,如果您的事件没有在您设置的超时期限到期之前发生,则该事件将不会被触发。
我认为没有设置事件之间的最短时间的方法/属性。
