Click or drag to resize

wclPowerEventsMonitor Class

The class allows an application to receive power state changes notifications.
Inheritance Hierarchy
SystemObject
  wclCommonwclSystemEventsMonitor
    wclCommonwclPowerEventsMonitor

Namespace: wclCommon
Assembly: wclCommon (in wclCommon.dll) Version: 8.0.6.0
Syntax
public class wclPowerEventsMonitor : wclSystemEventsMonitor

The wclPowerEventsMonitor type exposes the following members.

Constructors
 NameDescription
Public methodwclPowerEventsMonitor Creates new power events monitor object.
Top
Properties
 NameDescription
Public propertyActive Gets the monitor's state.
(Inherited from wclSystemEventsMonitor)
Public propertyMessageProcessing Gets message processing method.
(Inherited from wclSystemEventsMonitor)
Top
Methods
 NameDescription
Protected methodDoPowerStateChanged Calls the OnChanged event.
Protected methodDoStarted Calls the OnStarted event.
(Inherited from wclSystemEventsMonitor)
Protected methodDoStopped Calls the OnStopped event.
(Inherited from wclSystemEventsMonitor)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetPowerStatus Retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether the battery is currently charging, how much battery life remains, and if battery saver is on or off.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStart Opens the system events monitor and starts listening for events.
(Inherited from wclSystemEventsMonitor)
Public methodStop Stops listening for system events and releases all resources.
(Inherited from wclSystemEventsMonitor)
Protected methodSystemMessageReceived The method called when a system message is received.
(Overrides wclSystemEventsMonitorSystemMessageReceived(wclSystemCategoryMessage))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventOnPowerStateChanged The event is called when the system's power state has been changed.
Public eventOnStarted The event called when the monitor was started.
(Inherited from wclSystemEventsMonitor)
Public eventOnStopped The event called when the monitor was started.
(Inherited from wclSystemEventsMonitor)
Top
See Also