Datalogic .NET SDK

DecodeHandle (Constructor + 1 overload)

 

Syntax

 

   public DecodeHandle(DecodeDeviceCap deviceType);

 

 

Class                           : DecodeHandle

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

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

   
    public
partial class Form1 : Form

    {

        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