Printer
|
The PrinterAlert type exposes the following members.
Name | Description | |
---|---|---|
PrinterAlert(AlertCondition, AlertDestination, Boolean, Boolean, String, Int32, Boolean) | Creates an instance of a PrinterAlert object. | |
PrinterAlert(AlertCondition, AlertDestination, Boolean, Boolean, String, Int32, Boolean, String) | Creates an instance of a PrinterAlert object, including the printer alert text. | |
PrinterAlert(AlertCondition, AlertDestination, String, Boolean, Boolean, String, Int32, Boolean) | Creates an instance of a PrinterAlert object, including a Set-Get-Do name. | |
PrinterAlert(AlertCondition, AlertDestination, String, Boolean, Boolean, String, Int32, Boolean, String) | Creates an instance of a PrinterAlert object, including a Set-Get-Do name and the printer alert text. |
Name | Description | |
---|---|---|
AlertText | Return the text received from the printer. | |
Condition | Gets the current alert condition. | |
ConditionName | Return the AlertCondition of the alert. | |
Destination | Return the AlertDestination used by the alert. | |
DestinationAddress | Return the destination where the alert should be sent, for example, an IP Address or an email address, depending on the value of getDestinationAsSGDString. | |
DestinationAsSgdString | Return the string representation of the alert destination for Set-Get-Do. | |
OnClear | Return alert will be triggered on 'clear'. | |
OnSet | Return true if the alert is fired when 'set'. | |
Port | Return the destination port number where the alert should be sent. | |
Quelling | Return the quelling state of the alert. | |
SgdName | Return the string representation of the Set-Get-Do Name. |
Name | Description | |
---|---|---|
Equals | (Inherited from Object) | |
GetHashCode | (Inherited from Object) | |
GetType | (Inherited from Object) | |
ToString | (Inherited from Object) |
using System; using Zebra.Sdk.Printer; using Zebra.Sdk.Settings; public class PrinterAlertExample { public static void Main(string[] args) { PrinterAlert myPrinterAlert = new PrinterAlert(AlertCondition.PAPER_OUT, AlertDestination.TCP, true, false, "10.3.4.5", 9100, false); PrinterAlert myGenericAlert = myPrinterAlert; Console.WriteLine("Alert Info:"); Console.WriteLine(" Condition = " + myGenericAlert.Condition); Console.WriteLine(" Destination = " + myGenericAlert.DestinationAsSgdString); Console.WriteLine(" Address = " + myGenericAlert.DestinationAddress); Console.WriteLine(" Port = " + myGenericAlert.Port); Console.WriteLine(" Fire when condition occurs? = " + myPrinterAlert.OnSet); Console.WriteLine(" Fire when condition clears? = " + myPrinterAlert.OnClear); Console.WriteLine(" Are alerts quelled? = " + myPrinterAlert.Quelling); } }