Activates the printer's magnetic card reader, if present, and waits for timeoutMS milliseconds for a card to be swiped. If the printer does not have a reader the call will timeout.

Namespace:  ZSDK_API.Printer
Assembly:  ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0

Syntax

C#
string[] Read(
	int timeoutMS
)
Visual Basic (Declaration)
Function Read ( _
	timeoutMS As Integer _
) As String()

Parameters

timeoutMS
Type: System..::.Int32
The amount of time in milliseconds to enable the reader and wait for a card to be swiped.

Return Value

An array of three strings corresponding to the tracks of the card. If a track could not be read that string will be empty.

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.ZebraPrinterConnectionExceptionIf an I/O error occurs.
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf there is an issue writing to the printer.

See Also