Share via


Msr.Track4Data Property

2/27/2008

Holds the Track 4 data (JIS-II) from the most recently swiped card.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property Track4Data As Byte()
public abstract byte[] Track4Data { get; }
public:
virtual property array<unsigned char>^ Track4Data {
    array<unsigned char>^ get () abstract;
}
/** @property */
public abstract byte[] get_Track4Data ()
public abstract function get Track4Data () : byte[]

Remarks

If the TransmitSentinels property is set to false, Track4Data contains track data between, but not including, the start and end sentinels. If TransmitSentinels is true, the start and end sentinels are included.

If the DecodeData property is set to true, the data returned by Track4Data has been decoded from “raw” format.

An empty array indicates that the track was not accessible.

To maintain compatibility with previous versions, the MSR device’s service object can also continue to store the JIS-II data in another TracknData property. However, to ensure application portability, Track4Data should be used to access JIS-II data.

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
Msr.DecodeData Property
TransmitSentinels