UsbControlRequestType.AsByte Property

Definition

Gets or sets the bmRequestType value as a byte.

public:
 property byte AsByte { byte get(); void set(byte value); };
byte AsByte();

void AsByte(byte value);
public byte AsByte { get; set; }
var byte = usbControlRequestType.asByte;
usbControlRequestType.asByte = byte;
Public Property AsByte As Byte

Property Value

Byte

byte

The entire bmRequestType value in a byte.

Remarks

If the hardware specification for the device defines the bmRequestType field value to be sent as a byte, you can use the AsByte property. Otherwise, you must individually get or set bmRequestType values, such as direction, type, and recipient by using ControlTransferType, Direction, and Recipient properties, respectively.

Applies to