Share via


PosCommon.PowerNotify Property

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

Usage

'Usage
Dim posCommon1 As PosCommon

Dim returnValue As PowerNotification
returnValue = posCommon1.PowerNotify

Dim sampleValue As PowerNotification
posCommon1.PowerNotify = sampleValue

Syntax

'Declaration
Public MustOverride Property PowerNotify() As PowerNotification
public abstract PowerNotification PowerNotify {get; set;}
public: property virtual PowerNotification^ PowerNotify{
    PowerNotification^ get();
    Void set(PowerNotification^);
}
public abstract PowerNotification get_PowerNotify();
public abstract void set_PowerNotify(PowerNotification);
public abstract function get PowerNotify() : PowerNotification;
public abstract function set PowerNotify(PowerNotification);

Remarks

Contains the type of power notification selection made by the application. Possible values are defined by the PowerNotification enumeration. This property can be accessed after the device is opened.

PowerNotify can only be set while the device is disabled, that is, while the DeviceEnabled property is set to FALSE.

PowerNotify is initialized to PowerNotification.Disabled. State verification takes place in the basic and base classes for each device.

Setting PowerNotify can cause the following exception to be thrown:

Value

Meaning

Illegal

One of the following conditions has occurred:

  • The device is not opened; or

  • DeviceEnabled is set to TRUE; or

  • PowerNotify was set to an illegal value; or

  • PowerNotify = PowerNotification.Enabled but CapPowerReporting = PowerReporting.None, indicating that the device doesn’t support power notification.

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
CapPowerReporting
PowerState