共用方式為


Battery.PowerSource Property

Definition

Gets the current power source for the device.

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

Property Value

Power source, or uknown.

Applies to