Dela via


Battery.DeviceId Property

Definition

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

String

Platform::String

winrt::hstring

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 ".

Applies to

See also