Click or drag to resize

JobUtilZmotifGetReservationStatus Method

Queries the printer and returns the current status of the printer from the supplied reservation token.

Namespace:  Zebra.Sdk.Card.Zmotif.Job
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
ReservationInfo GetReservationStatus(
	int reservationToken
)

Parameters

reservationToken
Type: SystemInt32
The reservation token for the status query. Specify '0' for the reservationToken to query whether the printer is currently in session.

Return Value

Type: ReservationInfo
A ReservationInfo instance containing the status of the requested device reservation token.
Exceptions
ExceptionCondition
ConnectionExceptionIf the device is busy or there is a error communicating with the printer.
ZebraCardExceptionIf a printer error occurs.
ZebraIllegalArgumentExceptionIf the reservationToken is invalid.
Remarks
Must be polled at a minimum rate of once per minute with the returned reservation token to keep the reservation active.
See Also