Gets or sets a value indicating whether the component is enabled.
Assembly: System (in System.dll)
[<IODescriptionAttribute("FSW_Enabled")>] member EnableRaisingEvents : bool with get, set
Property ValueType: System.Boolean
true if the component is enabled; otherwise, false. The default is false. If you are using the component on a designer in Visual Studio 2005, the default is true.
The FileSystemWatcher object has been disposed.
The current operating system is not Microsoft Windows NT or later.
The directory specified in Path could not be found.
Path has not been set or is invalid.
The following example creates a FileSystemWatcher to watch the directory specified at run time. The component is set to watch for changes in LastWrite and LastAccess time, the creation, deletion, or renaming of text files in the directory. If a file is changed, created, or deleted, the path to the file prints to the console. When a file is renamed, the old and new paths print to the console.
Available since 1.1