ZebraPrinterFactoryGetInstance Method (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.14.1989
Syntaxpublic static ZebraPrinter GetInstance(
	Connection connection
)
Public Shared Function GetInstance ( 
	connection As Connection
) As ZebraPrinter
public:
static ZebraPrinter^ GetInstance(
	Connection^ connection
)
Parameters
- connection
 - Type: Zebra.Sdk.CommConnection
An open connection to a printer 
Return Value
Type: 
ZebraPrinterAn instance of a 
ZebraPrinter
Exceptions
Remarks
            If the Set-Get-Do value, 
appl.name, starts with one of the following, the printer is determined to 
            be a CPCL printer.  Otherwise it is considered to be a ZPL printer
See Also