Click or drag to resize

wclPowerEventsMonitor Class

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

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

The wclPowerEventsMonitor type exposes the following members.

Constructors
 NameDescription
Public methodwclPowerEventsMonitor Creates new object of the wclPowerEventsMonitor class.
Top
Properties
 NameDescription
Public propertyActive Gets the monitor's state.
Top
Methods
 NameDescription
Public methodClose Stops listening for the power events and releases all resources.
Protected methodDoPowerStateChanged Fires the OnChanged event.
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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMessageReceived The method called when a new notification message received.
Public methodOpen Opens the power state changes monitor and starts listening for events.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventOnPowerStateChanged The event fires when the system's power state has been changed.
Top
See Also