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.

public ref class UsbDeviceClasses sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbDeviceClasses final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbDeviceClasses
Public NotInheritable Class UsbDeviceClasses
Inheritance
Object Platform::Object IInspectable 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.

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