Share via


PrintResults.ErrorCode Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Contains the error code for the current error condition.

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

Syntax

'Declaration
Public Property ErrorCode As ErrorCode
public ErrorCode ErrorCode { get; set; }
public:
property ErrorCode ErrorCode {
    ErrorCode get ();
    void set (ErrorCode value);
}
/** @property */
public ErrorCode get_ErrorCode ()

/** @property */
public void set_ErrorCode (ErrorCode value)
public function get ErrorCode () : ErrorCode

public function set ErrorCode (value : ErrorCode)

Remarks

Contains the error code for the current error condition. Possible values are defined by the ErrorCode enumeration. The service object sets ErrorCode to communicate to the PosPrinterBase class that an error has occurred. The PosPrinterBase class will check the code and if it is non-zero, handle the error. If the PosPrinterProperties.AsyncMode property is set to TRUE, indicating asynchronous processing, the PosPrinterBase class will queue an ErrorEvent event. Otherwise, a PosControlException exception will be thrown.

ErrorCode is initialized to 0 (zero) by the PrintResults class.

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

PrintResults Class
PrintResults Members
Microsoft.PointOfService.BaseServiceObjects Namespace