共用方式為


IBattery.PowerSource 屬性

定義

取得裝置目前的電源。

public:
 property Microsoft::Maui::Devices::BatteryPowerSource PowerSource { Microsoft::Maui::Devices::BatteryPowerSource get(); };
public Microsoft.Maui.Devices.BatteryPowerSource PowerSource { get; }
member this.PowerSource : Microsoft.Maui.Devices.BatteryPowerSource
Public ReadOnly Property PowerSource As BatteryPowerSource

屬性值

適用於