UsbDeviceClasses Class

Definition

Provides a way for you to retrieve a UsbDeviceClass object based on the USB device class of a device. The properties defined in this class represent the supported USB device classes, and they return UsbDeviceClass objects.

For information about USB device classes, see the official USB Website for Approved Class Specification Documents.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbDeviceClasses
Inheritance
Object UsbDeviceClasses
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Examples

Here's how to specify a specific device class for which to enumerate UsbDevice](usbdevice.md) objects.

C#
var myDevices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(
   Windows.Devices.Usb.UsbDevice.GetDeviceClassSelector(
      Windows.Devices.Usb.UsbDeviceClasses.CdcControl
      ));

Properties

ActiveSync

Gets the device class object for the device that conforms to the Active Sync device class.

CdcControl

Gets the device class object for the device that conforms to the Communication Device Class (CDC).

DeviceFirmwareUpdate

Gets the device class object for the device that conforms to the Device Firmware Update device class.

Irda

Gets the device class object for an infrared transceiver that conforms to the IrDA class defined as per the IrDA Bridge Device Definition 1.0 specification.

Measurement

Gets the device class object for a device that conforms to the USB test and measurement class (USBTMC).

PalmSync

Gets the device class object for the device that conforms to the Palm Sync device class.

PersonalHealthcare

Gets the device class object for a device that conforms to the USB Personal Healthcare Device Class (PHDC).

Physical

Gets the device class object for a device that conforms to the Physical Interface Devices (PID) specification.

VendorSpecific

Gets the device class object for a custom device that has 0xFF class code. This indicates that the device does not belong to a class approved by USB-IF.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100