UsbDeviceClasses Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
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
));
Active |
Gets the device class object for the device that conforms to the Active Sync device class. |
Cdc |
Gets the device class object for the device that conforms to the Communication Device Class (CDC). |
Device |
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). |
Palm |
Gets the device class object for the device that conforms to the Palm Sync device class. |
Personal |
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. |
Vendor |
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. |
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 |