This documentation is archived and is not being maintained.

ServiceController.CanPauseAndContinue Property

Gets a value indicating whether the service can be paused and resumed.

[Visual Basic]
Public ReadOnly Property CanPauseAndContinue As Boolean
public bool CanPauseAndContinue {get;}
public: __property bool get_CanPauseAndContinue();
public function get CanPauseAndContinue() : Boolean;

Property Value

true if the service can be paused; otherwise, false.


Exception Type Condition
Win32Exception An error occurred when accessing a system API.


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ServiceController Class | ServiceController Members | System.ServiceProcess Namespace