UsbConfigurationDescriptor.SelfPowered Property

Definition

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.

public:
 property bool SelfPowered { bool get(); };
bool SelfPowered();
public bool SelfPowered { get; }
var boolean = usbConfigurationDescriptor.selfPowered;
Public ReadOnly Property SelfPowered As Boolean

Property Value

Boolean

bool

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.

Applies to