Share via


PosPrinterBase.FlagWhenIdle Property

2/27/2008

If set to true by the application, the service object will queue a StatusUpdateEvent event using the StatusIdle constant when the device is in an idle state, and reset FlagWhenIdle to false.

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

Syntax

'Declaration
Public Overrides Property FlagWhenIdle As Boolean
public override bool FlagWhenIdle { get; set; }
public:
virtual property bool FlagWhenIdle {
    bool get () override;
    void set (bool value) override;
}
/** @property */
public boolean get_FlagWhenIdle ()

/** @property */
public void set_FlagWhenIdle (boolean value)
public override function get FlagWhenIdle () : boolean

public override function set FlagWhenIdle (value : boolean)

Remarks

PosPrinterBase class verifies that the device has been opened, then retrieves or sets the value of PosPrinterProperties.FlagWhenIdle.

FlagWhenIdle is initialized to false by the PosPrinterProperties class. If FlagWhenIdle is set to true by the application, PosPrinterBase class will queue a StatusUpdateEvent event when the value of the State property changes to ControlState.Idle. If FlagWhenIdle is set to true while the device is in Idle state, PosPrinterBase queues a StatusUpdateEvent event immediately. FlagWhenIdle is set to false when the StatusUpdateEvent event is queued.

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

PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.FlagWhenIdle Property