Share via


BatteryInfoChangedEventArgs 類別

定義

包含 目前讀取的事件 IBattery自變數。

public ref class BatteryInfoChangedEventArgs : EventArgs
public class BatteryInfoChangedEventArgs : EventArgs
type BatteryInfoChangedEventArgs = class
    inherit EventArgs
Public Class BatteryInfoChangedEventArgs
Inherits EventArgs
繼承
BatteryInfoChangedEventArgs

備註

傳回電池的目前資訊。

建構函式

BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource)

初始化 BatteryInfoChangedEventArgs 類別的新執行個體。

屬性

ChargeLevel

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

PowerSource

取得裝置的目前電源。

State

取得裝置的充電狀態。

方法

ToString()

傳回這個 BatteryInfoChangedEventArgs 之執行個體的字串表示。

適用於