Scale.ErrorEvent Event
Notifies the application that a scale device error has been detected and a suitable response by the application is necessary to process the error condition.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
WithEvents scale1 As Scale
Function scale1_ErrorEvent(sender As Object, _
e As DeviceErrorEventArgs) As Void
Handles scale1.ErrorEvent
End Function
Syntax
'Declaration
Public MustOverride Event ErrorEvent As DeviceErrorEventHandler
public abstract event DeviceErrorEventHandler ErrorEvent;
public: abstract event DeviceErrorEventHandler^ ErrorEvent;
public abstract void add_ErrorEvent(DeviceErrorEventHandler handler);
public abstract void remove_ErrorEvent(DeviceErrorEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.
Remarks
This event is queued when an error is detected while trying to read scale data. ErrorEvent is not delivered until DataEventEnabled property is TRUE, so that proper application sequencing occurs.
Error information is contained in DeviceErrorEventArgs. The ErrorResponse property is preset to a default value, based on the ErrorLocus. The application's error processing can change the value of ErrorResponse.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
Scale Class
Scale Members
Microsoft.PointOfService Namespace
DeviceErrorEventArgs