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

属性值

适用于