NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileSystemWatcher.Enabled

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);

Property Value

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.

Remarks

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.

See Also

FileSystemWatcher Class | FileSystemWatcher Members | System.IO Namespace | Start | Stop