Share via


PinPadBase.Track1Data Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds either the decoded Track 1 data from the previous card swipe or an empty string.

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

Syntax

'Declaration
Public Overrides Property Track1Data As Byte()
public override byte[] Track1Data { get; set; }
public:
virtual property array<unsigned char>^ Track1Data {
    array<unsigned char>^ get () override;
    void set (array<unsigned char>^ value) override;
}
/** @property */
public byte[] get_Track1Data ()

/** @property */
public void set_Track1Data (byte[] value)
public override function get Track1Data () : byte[]

public override function set Track1Data (value : byte[])

Remarks

The PinPadBase class verifies that the PIN pad device has been opened, then retrieves or sets the value of PinPadProperties.Track1Data. Accessing Track1Data may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

The application has called the BeginEftTransaction method-- Track1Data can’t be set while the device is in EFT Transaction Mode.

Track1Data is initialized to an empty byte array by the PinPadProperties class.

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

PinPadBase Class
PinPadBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PinPad.Track1Data Property