Battery.DeviceId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the identifier (ID) for an individual battery controller.
public:
property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
public string DeviceId { get; }
var string = battery.deviceId;
Public ReadOnly Property DeviceId As String
Property Value
The battery controller identifier (ID).
Remarks
When the Battery object represents an individual battery controller, this property value can be used with the FromIdAsync method to re-create an object that represents the same battery controller (if it's still connected to the device). When the Battery object is an aggregate of battery controllers, this property is equal to "AggregateBattery
".