Specifies whether to monitor a file, directory, or both.
[Visual Basic] Public Enum WatcherTarget [C#] public enum WatcherTarget [C++] public enum WatcherTarget
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
Use the members of this enumeration to watch a file, directory, or both files and directories. Only one member can be used at a time.
Member Name | Description |
---|---|
Both | Watch both files and directories. |
Directory | The directory to watch. |
File | The file to watch. |
Namespace: System.IO
Assembly: system.io.dll