Continues a service after it has been paused.
[Visual Basic] Public Sub Continue() [C#] public void Continue(); [C++] public: void Continue(); [JScript] public function Continue();
|Win32Exception||An error occurred when accessing a system API.|
|InvalidOperationException||The service cannot be resumed.|
When you call Continue for a service, its status is first changed to ContinuePending and then, when the Continue method returns, it is changed to Running.
You cannot call Continue for the service until the service controller status is Paused.
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:
- ServiceControllerPermission for controlling services on the computer. Associated enumeration: ServiceControllerPermissionAccess.Control
- SecurityPermission for unrestricted access to service information. Associated enumeration: PermissionState.Unrestricted
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code