Click or drag to resize

JobUtilReadMagData Method (DataSource)

Reads the data from a magnetically encoded card.

Namespace:  Zebra.Sdk.Card.Job
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
MagTrackData ReadMagData(
	DataSource tracksToRead
)

Parameters

tracksToRead
Type: Zebra.Sdk.Card.EnumerationsDataSource
Specifies which tracks to read data from.

Return Value

Type: MagTrackData
A MagTrackData instance containing the magnetic data read from the card.
Exceptions
ExceptionCondition
ConnectionExceptionIf the device is busy or there is an error communicating with the printer.
SettingsExceptionIf the job settings are not valid.
TimeoutExceptionIf the process times out while trying to read the data.
ZebraCardExceptionIf a printer error occurs or there is an error creating the job.
ZebraIllegalArgumentExceptionIf tracksToRead is invalid or an error occurs while building the job.
See Also