Microsoft SDK for Java

setServiceStatus

This method of the Service Class changes the value of the service, based on a ServiceStatus object.

Syntax

protected synchronized final boolean setServiceStatus(ServiceStatus newstatus);

Return Value

Returns true if the status was updated; returns false if the newstatus parameter is not correct or the status could not be updated.

Parameters

newstatus The value that the service status is set to. The state in newstatus is copied to the current status.

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