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.

UsbDeviceClasses class

Applies to Windows only

Provides a way for the app to create a UsbDeviceClass object by specifying the USB device class of the device. The properties defined in this class represent the supported USB device classes and are passed in the constructor call to instantiate UsbDeviceClass. For information about USB device classes, see the official USB Website for Approved Class Specification Documents.

Syntax


public sealed class UsbDeviceClasses

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The UsbDeviceClasses class has these types of members:

Properties

The UsbDeviceClasses class has these properties.

PropertyAccess typeDescription

ActiveSync

Read-onlyGets the device class object for the device that conforms to the Active Sync device class.

CdcControl

Read-onlyGets the device class object for the device that conforms to the Communication Device Class (CDC).

DeviceFirmwareUpdate

Read-onlyGets the device class object for the device that conforms to the Device Firmware Update device class.

Irda

Read-onlyGets 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

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

PalmSync

Read-onlyGets the device class object for the device that conforms to the Palm Sync device class.

PersonalHealthcare

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

Physical

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

VendorSpecific

Read-onlyGets 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.

 

Examples

This code example shows how to specify a specific device class to obtain a UsbDevice object.


    
    var myDevices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(
                          UsbDevice.GetDeviceClassSelector(
                          new UsbDeviceClass(UsbDeviceClasses.CdcControl) {}));


Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft