Share via


Msr.DataEvent Event

2/27/2008

Raised by the service object to indicate the delivery of input data from the device to the application.

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

Syntax

'Declaration
Public Event DataEvent As DataEventHandler
public abstract event DataEventHandler DataEvent
public:
virtual event DataEventHandler^ DataEvent {
    void add (DataEventHandler^ value) abstract;
    void remove (DataEventHandler^ value) abstract;
}
/** @event */
public abstract void add_DataEvent (DataEventHandler value)

/** @event */
public abstract void remove_DataEvent (DataEventHandler value)

Remarks

Before delivering the event, the swiped data is placed into Track1Data, Track2Data, Track3Data, and Track4Data. If DecodeData is true, then this track data is decoded. If ParseDecodeData is true, the data is parsed into several additional properties.

The DataEventArgs.Status property is divided into four bytes representing information about the four tracks. This diagram indicates how the property Status is divided:

High Word

Low Word

High Byte

Low Byte

High Byte

Low Byte

Track 4

Track 3

Track 2

Track 1

A value of zero for a track byte means that no data was received for that particular track from the card swipe. This could be due to several factors: for example, the hardware device may not have a read head for the track, or the application intentionally precluded incoming data from the track via the TracksToRead property.

A value greater than zero indicates the length in bytes of the corresponding TracknData property.

See Also

Reference

Msr Class
Msr Members
Microsoft.PointOfService Namespace
DataEventHandler Delegate
DataEventArgs Class
Msr.Track1Data Property
Msr.Track2Data Property
Msr.Track3Data Property
Msr.Track4Data Property
Msr.DecodeData Property
Msr.ParseDecodeData Property