Determines whether the service can be stopped once it has started. If false, the OnStop method will not be called.
[Visual Basic] Overridable Public Property CanStop As Boolean [C#] public bool CanStop {virtual get; virtual set;} [C++] public: __property virtual bool get_CanStop(); public: __property virtual void set_CanStop(bool); [JScript] public function get CanStop() : Boolean; public function set CanStop(Boolean);
ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace