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!

ServiceBase.CanStop

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

See Also

ServiceBase Class | ServiceBase Members | System.ServiceProcess Namespace