Share via


Msr.DecodeData Property

2/27/2008

If false, the Track1Data, Track2Data, Track3Data, and Track4Data properties contain the original encoded bit sequence, known as “raw format.”

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

Syntax

'Declaration
Public MustOverride Property DecodeData As Boolean
public abstract bool DecodeData { get; set; }
public:
virtual property bool DecodeData {
    bool get () abstract;
    void set (bool value) abstract;
}
/** @property */
public abstract boolean get_DecodeData ()

/** @property */
public abstract void set_DecodeData (boolean value)
public abstract function get DecodeData () : boolean

public abstract function set DecodeData (value : boolean)

Remarks

If true, each byte of track data contained within the Track1Data, Track2Data, Track3Data, and Track4Data properties is mapped from its raw format to its corresponding decoded ASCII bit sequence. This conversion is mainly of relevance for data that is not of the 7-bit format, since 7-bit data needs no decoding to decipher its corresponding alphanumeric and/or Katakana characters.

This table describes the decoding that takes place:

Card Type

Track Data Property

Data Format

Raw Bytes

Decoded Bytes

ISO

Track1Data

6-Bit

0x00 - 0x3F

0x20 - 0x5F

Track2Data

4-Bit

0x00 - 0x0F

0x30 - 0x3F

Track3Data

4-Bit

0x00 - 0x0F

0x30 - 0x3F

JIS-I

Track1Data

6-Bit

0x00 - 0x3F

0x20 - 0x5F

Track1Data

7-Bit

0x00 - 0x7F

Unchanged

Track2Data

4-Bit

0x00 - 0x0F

0x30 - 0x3F

Track3Data

4-Bit

0x00 - 0x0F

0x30 - 0x3F

Track3Data

7-Bit

0x00 - 0x7F

Unchanged

JIS-II

Track4Data

7-Bit

0x00 - 0x7F

Unchanged

DecodeData is typically initialized to true.

Setting DecodeData to false automatically sets the ParseDecodeData property to false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

Msr Class
Msr Members
Microsoft.PointOfService Namespace
ParseDecodeData
Track1Data
Track2Data
Track3Data
Track4Data