Datalogic .NET SDK
GetExtPowerStatus (Method)
Syntax
public static Boolean GetExtPowerStatus ();
Description
This function gets the status of external AC power for the device.
Parameters Table
|
Type |
Parameter |
Description |
[in] |
void |
- |
- |
|
|
|
|
[returns] |
Boolean
|
|
A value of TRUE is returned if the device is currently powered with external AC power, otherwise FALSE is returned. |
[on error] |
FALSE |
|
- |
Example
private void btnBatteryInfo_Click(object sender, EventArgs e) {
/* Get Device.GetExtPowerStatus() and add it into a listView control */ listView1.Items.Add(new ListViewItem(new string[] { "Ext Power Status:", Device.GetExtPowerStatus().ToString() })); }
|
See Also
Copyright © Datalogic ADC. All Right Reserved