Gets or sets a value indicating whether the component is enabled.
[Visual Basic] Overridable Public Property Enabled As Boolean [C#] public bool Enabled {virtual get; virtual set;} [C++] public: __property virtual bool get_Enabled(); public: __property virtual void set_Enabled(bool); [JScript] public function get Enabled() : Boolean; public function set Enabled(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 7, the default is true.
true is the same as using Start, and false is the same as using Stop.
Note The component will not begin watching the specified directory until the Path property has been set.
FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | Start | Stop