ClaimedMagneticStripeReader.IsDecodeDataEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 type | Track data property | Raw data format | Raw bytes | Decoded Values |
---|---|---|---|---|
ISO | Track 1 data | 6-bit | 0x00-0x3F | 0x20 through 0x5F |
ISO | Track 2 data | 4-bit | 0x00-0x3F | 0x30 through 0x3F |
ISO | Track 3 data | 4-bit | 0x00-0x3F | 0x30 through 0x3F |
JIS-I | Track 1 data | 6-bit | 0x00-0x3F | 0x20 through 0x5F |
JIS-I | Track 1 data | 7-bit | 0x00-0x7F | Data unaltered |
JIS-I | Track 2 data | 4-bit | 0x00-0x0F | 0x20 through 0x3F |
JIS-I | Track 3 data | 4-bit | 0x00-0x0F | 0x20 through 0x3F |
JIS-I | Track 3 data | 7-bit | 0x00-0x7F | Data unaltered |
JIS-II | Track 4 data | 7-bit | 0x00-0x7F | Data unaltered |
AAMVA | Track 1 data | 6-bit | 0x00-0x3F | 0x20 through 0x5F |
AAMVA | Track 2 data | 4-bit | 0x00-0x0F | 0x30 through 0x3F |
AAMVA | Track 3 data | 6-bit | 0x00-0x3F | 0x20 through 0x5F |
This property is initialized to false.