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

2/27/2008

Holds the station or stations that were printing when an error was detected.

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

Syntax

'Declaration
Public Overrides ReadOnly Property ErrorStation As PrinterStation
public override PrinterStation ErrorStation { get; }
public:
virtual property PrinterStation ErrorStation {
    PrinterStation get () override;
}
/** @property */
public PrinterStation get_ErrorStation ()
public override function get ErrorStation () : PrinterStation

Remarks

PosPrinterBase class verifies that the device has been opened, then retrieves the value of PosPrinterProperties.ErrorStation. If the application retrieves ErrorStation when the device isn’t in an error condition, PosPrinterProperties returns a value of PrinterStation.None.

ErrorStation is initialized to PrinterStation.None by the PosPrinterProperties class. PosPrinterProperties may throw PosControlException exceptions with the following values:

Value

Meaning

Illegal

The service object has set the ErrorStation property to an invalid PrinterStation value.

If an error occurs, PosPrinterBase class sets ErrorStation to the value returned in the PrintResults class. Normally, service objects should not need to set ErrorStation.

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.ErrorStation Property
PrinterStation Enumeration