Microsoft SDK for Java

canStop

This method of the Service Class indicates whether the service can be stopped.

Syntax

public synchronized boolean canStop();

Return Value

Returns true if the service can be stopped (that is, if getControlsAccepted returns ACCEPT_STOP); otherwise, returns false.

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