PosPrinterBase.CapCoverSensor Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Indicates whether the printer has a “cover open” sensor.

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

Syntax

'Declaration
Public Overrides ReadOnly Property CapCoverSensor As Boolean
public override bool CapCoverSensor { get; }
public:
virtual property bool CapCoverSensor {
    bool get () override;
}
/** @property */
public boolean get_CapCoverSensor ()
public override function get CapCoverSensor () : boolean

Remarks

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

CapCoverSensor is initialized to false by the PosPrinterProperties class. The service object should update CapCoverSensor to an appropriate value in its Open method.

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.CapCoverSensor Property