Microsoft SDK for Java

canShutdown

This method of the Service Class indicates whether indicates whether the service should be notified when the system shuts down.

Syntax

public synchronized boolean canShutdown();

Return Value

Returns true if the service can accept shutdown requests (that is, if getControlsAccepted returns ACCEPT_SHUTDOWN); otherwise, returns false.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.