Datalogic .NET SDK
DecodeHandle (Constructor + 1 overload)
Syntax
public DecodeHandle(DecodeDeviceCap deviceType);
Description
Constructor to Datalogic.API.DecodeHandle.
A file handle to the first device found that contains the capabilities specified by the deviceType parameter will be opened.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
DecodeDeviceCap |
deviceType |
Decoder device capabilities requested for this instance of DecodeHandle. The DecodeDeviceCap enumeration can be logically OR'd. |
|
|
|
|
[on error] |
Exception |
|
Thrown when an error occurs opening the file handle to the decoder. |
Example
{ private DecodeHandle hDcd; public Form1() { InitializeComponent(); InitDecodeEngine(); } public void InitDecodeEngine() { hDcd = new DecodeHandle(DecodeDeviceCap.Exists | DecodeDeviceCap.Barcode); }
|
See Also
Decoding System Overview, DecodeException (Class), DecodeDeviceCap (Enum), Example #002.
Copyright © Datalogic ADC. All Right Reserved