Question about FileSystemWatcher

B

Becci

Is there a way to know, when we get an "ONChenaged" event
from the filesystemwatcher, what actually changed, file, last
access, last write, etc? Seems they are all bundled into the
on event?
 
J

Jay B. Harlow [MVP - Outlook]

Becci,
The FileSystemEventArgs parameter to the Changed event specifically the
FileSystemEventArgs.ChangeType property tells you the "kind of change
detected in the file system".

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top