PinPad.Track4Data Property
2/27/2008
Holds either the decoded Track 4 data from the previous card swipe or an empty string.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Property Track4Data As Byte()
public abstract byte[] Track4Data { get; set; }
public:
virtual property array<unsigned char>^ Track4Data {
array<unsigned char>^ get () abstract;
void set (array<unsigned char>^ value) abstract;
}
/** @property */
public abstract byte[] get_Track4Data ()
/** @property */
public abstract void set_Track4Data (byte[] value)
public abstract function get Track4Data () : byte[]
public abstract function set Track4Data (value : byte[])
Remarks
An empty string indicates that the track was not physically read. The application must set Track4Data before calling the BeginEftTransaction method.
To maintain compatibility with previous versions, the base class may also continue to store the JIS-II data in another TracknData property. However, to ensure application portability, it is best to use Track4Data to access JIS-II data.
Accessing Track4Data may cause a PosControlException to be thrown with the following ErrorCode:
Value |
Meaning |
Illegal |
The application has called the BeginEftTransaction method-- Track4Data can’t be set while the device is in EFT Transaction Mode. |
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
PinPad Class
PinPad Members
Microsoft.PointOfService Namespace
PinPad.BeginEftTransaction Method