What is a power event?

Showing Answers 1 - 3 of 3 Answers

machud

  • Apr 10th, 2011
 

Some Windows Services needs to respond to the power status changes like hibernates, suspend mode etc.  Some specific activity like store the user data for later may have to be performed in these specific type of events . these types of events are called Power Events .  "OnPowerEvent" method of derived class of "ServiceBase" will be invoked when these type of power status change happens.
 "OnPowerEvent" expects "CanHandlePowerEvent" property to be set to true explicitly

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions