Windows Dev Center

Battery.GetDefault method

Gets the default Battery object for the phone.

Syntax


Public Shared Function GetDefault() As Battery

Parameters

This method has no parameters.

Return value

Type: Battery

The default Battery object for the phone.

Requirements (device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (operating system)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.Devices.Power
Windows::Phone::Devices::Power [C++]

Metadata

Windows.WinMD

See also

Battery

 

 

Community Additions

ADD
Show:
© 2015 Microsoft