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

2/27/2008

Holds the severity of the most recent error condition.

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

Syntax

'Declaration
Public Overrides ReadOnly Property ErrorLevel As PrinterErrorLevel
public override PrinterErrorLevel ErrorLevel { get; }
public:
virtual property PrinterErrorLevel ErrorLevel {
    PrinterErrorLevel get () override;
}
/** @property */
public PrinterErrorLevel get_ErrorLevel ()
public override function get ErrorLevel () : PrinterErrorLevel

Remarks

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

ErrorLevel is initialized to PrinterErrorLevel.None by the PosPrinterProperties class. If the service object sets ErrorLevel to an invalid PrinterErrorLevel value, the PosPrinterProperties class may throw PosControlException exceptions with the following values:

Value

Meaning

Illegal

The service object has set the ErrorLevel property to an invalid PrinterErrorLevel value.

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

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