Share via


ClaimedMagneticStripeReader.IsDecodeDataEnabled Property

Definition

Indicates whether to provide raw or decoded data from the most recently swiped card.

public:
 property bool IsDecodeDataEnabled { bool get(); void set(bool value); };
bool IsDecodeDataEnabled();

void IsDecodeDataEnabled(bool value);
public bool IsDecodeDataEnabled { get; set; }
var boolean = claimedMagneticStripeReader.isDecodeDataEnabled;
claimedMagneticStripeReader.isDecodeDataEnabled = boolean;
Public Property IsDecodeDataEnabled As Boolean

Property Value

Boolean

bool

Set to true if decoded data is provided to the application; otherwise, false.

Remarks

Use this property to decide whether to pass the data from the card swipe in the original raw form or to decode it first.

If set to true, each byte of track data is mapped from its original encoded bit sequence, as it exists in the magnetic card, to its corresponding decoded ASCII bit sequence. This conversion is not relevant to 7-bit format, which is not encoded.

For each card type, the decoding takes place as follows:

Card typeTrack data propertyRaw data formatRaw bytesDecoded Values
ISOTrack 1 data6-bit0x00-0x3F0x20 through 0x5F
ISOTrack 2 data4-bit0x00-0x3F0x30 through 0x3F
ISOTrack 3 data4-bit0x00-0x3F0x30 through 0x3F
JIS-ITrack 1 data6-bit0x00-0x3F0x20 through 0x5F
JIS-ITrack 1 data7-bit0x00-0x7FData unaltered
JIS-ITrack 2 data4-bit0x00-0x0F0x20 through 0x3F
JIS-ITrack 3 data4-bit0x00-0x0F0x20 through 0x3F
JIS-ITrack 3 data7-bit0x00-0x7FData unaltered
JIS-IITrack 4 data7-bit0x00-0x7FData unaltered
AAMVATrack 1 data6-bit0x00-0x3F0x20 through 0x5F
AAMVATrack 2 data4-bit0x00-0x0F0x30 through 0x3F
AAMVATrack 3 data6-bit0x00-0x3F0x20 through 0x5F

This property is initialized to false.

Applies to