Export (0) Print
Expand All

ServiceController.CanShutdown Property

Gets a value indicating whether the service should be notified when the system is shutting down.

[Visual Basic]
Public ReadOnly Property CanShutdown As Boolean
[C#]
public bool CanShutdown {get;}
[C++]
public: __property bool get_CanShutdown();
[JScript]
public function get CanShutdown() : Boolean;

Property Value

true if the service should be notified when the system is shutting down; otherwise, false.

Exceptions

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

Requirements

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

Show:
© 2014 Microsoft