Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UsbConfigurationDescriptor.SelfPowered | selfPowered property

Applies to Windows only

Gets the D6 bit of the bmAttributes field in the USB configuration. This value indicates whether the device is drawing power from a local source or the bus.

Syntax


var selfPowered = usbConfigurationDescriptor.selfPowered;

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True, if the device is drawing power from a local source; false indicates that the device is only drawing power from the bus.

Remarks

If SelfPowered is true, the device is drawing power from a local source, and also some power from the bus. Get the MaxPowerMilliamps property value to determine the amount of power the device is drawing from the bus.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

UsbConfigurationDescriptor

 

 

Show:
© 2014 Microsoft