Share via


PosCommon.PowerNotify Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets the type of power notification selection made by the application.

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

Syntax

'Declaration
Public MustOverride Property PowerNotify As PowerNotification
public abstract PowerNotification PowerNotify { get; set; }
public:
virtual property PowerNotification PowerNotify {
    PowerNotification get () abstract;
    void set (PowerNotification value) abstract;
}
/** @property */
public abstract PowerNotification get_PowerNotify ()

/** @property */
public abstract void set_PowerNotify (PowerNotification value)
public abstract function get PowerNotify () : PowerNotification

public abstract function set PowerNotify (value : PowerNotification)

Remarks

Possible values are defined by the PowerNotification enumeration.

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

The PowerNotify method is initialized to PowerNotification.Disabled. State verification occurs in the basic and base classes for each device.

Setting the PowerNotify method may throw a PosControlException with the following values:

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. This indicates that the device does not 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.

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
PosCommon.CapPowerReporting Property
PowerState