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.

UsbDeviceClass class

Provides a way for the app to get an Advanced Query Syntax (AQS) string by specifying the class code, subclass code, and the protocol code defined by the device. The properties in this class are passed in the call to GetDeviceClassSelector.

Syntax


public ref class UsbDeviceClass sealed 

Attributes

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

Members

The UsbDeviceClass class has these types of members:

Constructors

The UsbDeviceClass class has these constructors.

ConstructorDescription
UsbDeviceClass Creates a UsbDeviceClass object.

 

Methods

The UsbDeviceClass class inherits methods from the Object class (C#/VB/C++).

Properties

The UsbDeviceClass class has these properties.

PropertyAccess typeDescription

ClassCode

Read/writeGets or sets the class code of the device.

ProtocolCode

Read/writeGets or sets the protocol code of the device.

SubclassCode

Read/writeGets or sets the subclass code of the device.

 

Remarks

You can create a UsbDeviceClass object by specifying any one of the following sets of properties:

  • Class code.
  • Class and subclass codes.
  • Class, subclass, and protocol codes.

This code example shows how to specify the device class and subclass codes to obtain a UsbDevice object.

    byte deviceClass = 0xf0;
    byte deviceSubclass = 0x01;
    
    var myDevices = await 
                          Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(
                          UsbDevice.GetDeviceClassSelector(
                          new UsbDeviceClass() {
                          Class = deviceClass, Subclass = deviceSubclass }));

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

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

Namespace

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

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft. All rights reserved.