共用方式為


UINavigationController.TryGetBatteryReport 方法

定義

取得 UI 流覽控制器目前電池狀態的相關資訊。

public:
 virtual BatteryReport ^ TryGetBatteryReport() = TryGetBatteryReport;
BatteryReport TryGetBatteryReport();
public BatteryReport TryGetBatteryReport();
function tryGetBatteryReport()
Public Function TryGetBatteryReport () As BatteryReport

傳回

UI 流覽控制器目前電池狀態的相關資訊。

實作

Windows 需求

規格需求 Description
裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於

另請參閱