我在Changed事件上使用FileSystemWatcher,我想传递一个整数变量。例如: FileSystemWatcher watcher = new FileSystemWatcher();watcher.Changed += new FileSystemEventHandler(fileSystemWatcher_Changed);
在fileSystemWatche
我有一个小的vb.net应用程序,它使用连接到UNC路径的FileSystemWatcher,在一段不确定的时间(<天)之后,来自观察者的事件没有被引发。Im正在捕获文件创建事件并将路径传递给processfile代码块:
Private Sub fsWatch1_Created(ByVal sender As Object, ByVal e AsSystem.IO.FileSystemEventArgs
我已经创建了一个FileSystem观察者,并注册了2个事件。一个用于创建,另一个用于更改。FileSystemWatcher fswInbound = new FileSystemWatcher();fswInbound.EnableRaisingEventstrue;fswInbound.Created += new FileSystemEv