BatteryInfoChangedEventArgs 類別

定義

電池已變更資訊。

public class BatteryInfoChangedEventArgs : EventArgs
繼承
System.EventArgs
BatteryInfoChangedEventArgs

備註

傳回電池的目前資訊。

建構函式

BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource)

公用建構函式。

屬性

ChargeLevel

取得裝置目前從 0.0 到 1.0 的收費等級。

PowerSource

取得裝置的目前電源。

State

如果可以判斷裝置的充電狀態,則取得裝置的充電狀態。

方法

ToString()

將資料輸出為字串。

適用於