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

2/27/2008

Holds a vendor-supplied description of the current error.

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

Syntax

'Declaration
Public Overrides ReadOnly Property ErrorString As String
public override string ErrorString { get; }
public:
virtual property String^ ErrorString {
    String^ get () override;
}
/** @property */
public String get_ErrorString ()
public override function get ErrorString () : String

Remarks

PosPrinterBase class verifies that the device has been opened, then retrieves the value of PosPrinterProperties.ErrorString. If the application retrieves ErrorString when the device isn’t in an error condition, PosPrinterProperties returns an empty string.

ErrorString is initialized to an empty string by the PosPrinterProperties class. If an error occurs, PosPrinterBase class sets ErrorString to the value returned in the PrintResults class. Normally, service objects should not need to set ErrorString.

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