哪个用户引起了FileSystemWatcher事件? [英] Which user caused FileSystemWatcher events?

查看:77
本文介绍了哪个用户引起了FileSystemWatcher事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我可以在文件夹树中捕获各种文件的Delete事件,但是如何确定哪个用户导致了删除?

For example, I can catch the Delete event for various files in a folder tree, but how would I go about determining which user caused the delete to happen?

我在FileSystemWatcher的MSDN文档中找不到任何明显的内容,因此也许是不可能的.我想知道是否有解决办法.

I couldn't find anything obvious in the MSDN documentation for FileSystemWatcher, so maybe it is just not possible. I'd be curious if there is a solution however.

推荐答案

在FileSystemWatcher的当前实现中当前无法实现,因为在删除文件或任何有关文件的内容时,它不会收到此类信息变化.

This isn't currently possible with the current implementations of the FileSystemWatcher as it does not receive this type of information when a file is deleted, or anything about a file changes.

这篇关于哪个用户引起了FileSystemWatcher事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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