Wednesday, March 16, 2011

Directory Watch Class (.net)

I need a quick yes/no answer on this...

Is it possible to get a Directory Watch Class to watch a directory and its sub directories (all the way down) or does the Directory Watch Class only monitor changes/events in the parent directory?

From stackoverflow
  • Yes its possible. The property IncludeSubDirectories lets you do that. You do mean the FileSystemWatcher?

    Michael L : Thanks Stefan! This may seem like a trivial question, but this is exactly why stackoverflow was created, now the question is in the kb, so other developers can benefit from it.
    Stefan : Just a question, you did mean the FileSystemWatcher not Directory watch class because I dont know about that class?
    Michael L : possible FileSystemWatcher is a newer name for the DirectoryWatchClass

0 comments:

Post a Comment