SmartCardRW.ErrorEvent Event
2/27/2008
Fired by the service object to notify the application that a SCR/W 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)
Syntax
'Declaration
Public Event ErrorEvent As DeviceErrorEventHandler
public abstract event DeviceErrorEventHandler ErrorEvent
public:
virtual event DeviceErrorEventHandler^ ErrorEvent {
void add (DeviceErrorEventHandler^ value) abstract;
void remove (DeviceErrorEventHandler^ value) abstract;
}
/** @event */
public abstract void add_ErrorEvent (DeviceErrorEventHandler value)
/** @event */
public abstract void remove_ErrorEvent (DeviceErrorEventHandler value)
Remarks
Input error events are generated when errors occur while reading the data from a newly inserted smart card. These error events are not delivered until the DataEventEnabled property is set to true to allow proper application sequencing. All error information is placed into the applicable properties before this event is delivered.
Output error events are generated and delivered when an error occurs during asynchronous WriteData processing. The errors are placed into the applicable properties before the event is delivered.
The DeviceErrorEventArgs object contains the error information.
If DeviceErrorEventArgs.ErrorCode is Extended, then ErrorCodeExtended has one of the following values:
Code |
Meaning |
ExtendedErrorNoCard |
There is no card detected in the SCR/W but a card was expected. |
ExtendedErrorRead |
There was a read error. |
ExtendedErrorTorn |
The smart card was prematurely removed from the SCR/W unexpectedly. The CapCardErrorDetection property must be true before this can be set. |
ExtendedErrorNoCard |
There is no card detected in the SCR/W but a card was expected. |
DeviceErrorEventArgs.ErrorResponse is preset to a default value based on ErrorLocus.
See Also
Reference
SmartCardRW Class
SmartCardRW Members
Microsoft.PointOfService Namespace
SmartCardRW.CapCardErrorDetection Property
SmartCardRW.SCPresentSensor Property
ReadData
SmartCardRW.WriteData Method