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

2/27/2008

Indicates the presence of receipt cartridge monitoring sensors.

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

Syntax

'Declaration
Public Overrides ReadOnly Property CapRecCartridgeSensor As PrinterCartridgeSensors
public override PrinterCartridgeSensors CapRecCartridgeSensor { get; }
public:
virtual property PrinterCartridgeSensors CapRecCartridgeSensor {
    PrinterCartridgeSensors get () override;
}
/** @property */
public PrinterCartridgeSensors get_CapRecCartridgeSensor ()
public override function get CapRecCartridgeSensor () : PrinterCartridgeSensors

Remarks

PosPrinterBase class verifies that the device has been opened, then retrieves the value of PosPrinterProperties.CapRecCartridgeSensor. If the CapRecPresent property is set to false, a value of PrinterCartridgeSensors.None is returned.

CapRecCartridgeSensor is initialized to PrinterCartridgeSensors.None by the PosPrinterProperties class. The service object should update CapRecCartridgeSensor to an appropriate value in its Open method. The PosPrinterProperties class may throw PosControlException exceptions with the following values:

Value

Meaning

Illegal

The service object has set the CapRecCartridgeSensor property to an invalid PrinterCartridgeSensors value.

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