次の方法で共有


PowerManager クラス

定義

電話機のバッテリーが省電力モードになっているかどうかに関する情報を提供します。

public ref class PowerManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PowerManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class PowerManager
Public Class PowerManager
継承
Object Platform::Object IInspectable PowerManager
属性

Windows の要件

デバイス ファミリ
Windows Mobile Extension SDK (10.0.10240.0 で導入)
API contract
Windows.Phone.PhoneContract (v1.0 で導入)

プロパティ

PowerSavingMode

電話機のバッテリーが省電力モードかどうかを示す値を取得します。

PowerSavingModeEnabled

省電力モードが現在アクティブかどうかに関係なく、電話機で省電力モードが現在有効になっているかどうかを示す値を取得します。

イベント

PowerSavingModeChanged

電話機のバッテリーの省電力モードが変更されたときに発生します。

適用対象