ZebraPrinterFactoryGetInstance Method (PrinterLanguage, Connection)
|
Factory method to create the correct
ZebraPrinter concrete class based on the printer's control language.
Namespace:
Zebra.Sdk.Printer
Assembly:
SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax public static ZebraPrinter GetInstance(
PrinterLanguage language,
Connection connection
)
Public Shared Function GetInstance (
language As PrinterLanguage,
connection As Connection
) As ZebraPrinter
public:
static ZebraPrinter^ GetInstance(
PrinterLanguage^ language,
Connection^ connection
)
Parameters
- language
- Type: Zebra.Sdk.PrinterPrinterLanguage
The language of the printer instance to be created - connection
- Type: Zebra.Sdk.CommConnection
An open connection to a printer
Return Value
Type:
ZebraPrinterAn instance of a
ZebraPrinterExceptions See Also