Share via


Msr.Track2Data Property

2/27/2008

Holds either the Track 2 data from the most recently swiped card or an empty array.

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

Syntax

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

Remarks

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

If the DecodeData property is set to true, the data returned by Track2Data has been decoded from “raw” format. It may also be parsed into other properties when the ParseDecodeData property is set.

An empty array indicates that the track was not accessible.

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