SystemInfo.ACLineStatus Property
Gets or sets a byte that represents whether the device is plugged in.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Property ACLineStatus As Byte
'Usage
Dim instance As SystemInfo
Dim value As Byte
value = instance.ACLineStatus
instance.ACLineStatus = value
public byte ACLineStatus { get; set; }
public:
property unsigned char ACLineStatus {
unsigned char get ();
void set (unsigned char value);
}
public function get ACLineStatus () : byte
public function set ACLineStatus (value : byte)
Property Value
Type: System.Byte
AC power status. It is one of the following values:
Value |
Description |
---|---|
0 |
Offline - Not plugged in |
1 |
Online - Plugged in |
255 |
Unknown status |
All other values are reserved.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.