Datalogic .NET SDK

GetIsInCradle (Method)

 

Syntax

 

   public static Boolean GetIsInCradle();

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

This function returns an indication of whether the device is currently in a cradle.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

void

-

-

 

 

 

 

[returns]

Boolean

 

TRUE if the device is in a cradle, FALSE otherwise.

[on error]

FALSE

 

-

 

 

Example

 

        private void btnGetHwInfo_Click(object sender, EventArgs e)

        {

            /* Get Device.GetIsInCradle() and show it into a listView control */

            listView1.Items.Add(new ListViewItem(new string[]

                    { "Is In Cradle?", Device.GetIsInCradle().ToString() }));

 

        }

 

 

 

See Also

Example #025.

 

Copyright © Datalogic ADC. All Right Reserved