共用方式為


Battery.State 屬性

定義

取得裝置的充電狀態。

public:
 static property Microsoft::Maui::Devices::BatteryState State { Microsoft::Maui::Devices::BatteryState get(); };
public static Microsoft.Maui.Devices.BatteryState State { get; }
static member State : Microsoft.Maui.Devices.BatteryState
Public Shared ReadOnly Property State As BatteryState

屬性值

電池狀態或未知。

適用於