Share via


PointCardRW.ErrorEvent Event

Notifies the application that a point card 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 pointCardRW1 As PointCardRW
Function pointCardRW1_ErrorEvent(sender As Object, _
    e As DeviceErrorEventArgs) As Void
    Handles pointCardRW1.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

Input error events are generated when errors occur while reading the magnetic track data from a newly inserted card. Input error events are not delivered until DataEventEnabled is TRUE, so that proper application sequencing occurs.

The error information data is placed in ReadState property before this event is delivered. The RecvLength property is set to 0 for each track that had an error and the TrackXData property is set to empty for each track that had an error.

Output error events are generated and delivered when an error occurs during asynchronous PrintWrite processing. The errors are placed into the WriteState property before the event is delivered.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PointCardRW Class
PointCardRW Members
Microsoft.PointOfService Namespace
Status, Result Code, and State Model
ReadState
RecvLength
Track1Data
Track2Data
Track3Data
Track4Data
Track5Data
Track6Data
WriteState