Share via


PosPower.PowerSource Property

2/27/2008

Gets the current power source.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property PowerSource As PowerSource
public virtual PowerSource PowerSource { get; }
public:
virtual property PowerSource PowerSource {
    PowerSource get ();
}
/** @property */
public PowerSource get_PowerSource ()
public function get PowerSource () : PowerSource

Remarks

Possible values are defined by the PowerSource enumeration. Valid values for PowerSource are as follows:

Member

Description

AC

The current power source is the AC line.

Backup

The current power source is a backup source such as an UPS or backup battery.

Battery

The current power source is a system battery. This value is only presented for systems that operate normally on battery.

NotAvailable

Power source reporting is not available.

Whenever the service object updates PowerSource, it generates a StatusUpdateEvent event of StatusPowerSource.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosPower Class
PosPower Members
Microsoft.PointOfService Namespace