C#中的FileSystemWatcher类 [英] FileSystemWatcher Class In C#

查看:59
本文介绍了C#中的FileSystemWatcher类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< p>你好,</p>< p> </p>< p>我在我的应用程序中使用FileSystemWatcher类.我注意到Change事件称为两次.是什么 该</p< p>/p< p> p的解决方案或者是否有任何特定原因需要两次调用该方法?如果是的话,请告诉我其背后的原因是什么.否则,提供仅对该事件调用一次的解决方案. 您.</p>

<p>Hello,</p><p></p><p>I am using FileSystemWatcher Class in My Application. I have noticed that Change event is Called Twice. What is the Solution for that?</p><p></p><p>Or is there any specific reason for calling that method twice? If yes then tell me what is the reason behind that. Otherwise provide solution to call only once that event.</p><p></p><p>Thank You.</p>

推荐答案

如果您可以共享代码,则将有助于我们确定解决方案.
If you can share the code, that will help us to identify the solution.


这篇关于C#中的FileSystemWatcher类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆