UsbDeviceClasses クラス

定義

デバイスの USB デバイス クラスに基づいて UsbDeviceClass オブジェクトを取得する方法を提供します。 このクラスで定義されているプロパティは、サポートされている USB デバイス クラスを表し、 UsbDeviceClass オブジェクトを返します。

USB デバイス クラスの詳細については、 承認済みクラス仕様ドキュメントの公式 USB Web サイトを参照してください。

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
継承
Object Platform::Object IInspectable UsbDeviceClasses
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

UsbDevice](usbdevice.md) オブジェクトを列挙する特定のデバイス クラスを指定する方法を次に示します。

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

プロパティ

ActiveSync

Active Sync デバイス クラスに準拠するデバイスのデバイス クラス オブジェクトを取得します。

CdcControl

Communication Device Class (CDC) に準拠するデバイスのデバイス クラス オブジェクトを取得します。

DeviceFirmwareUpdate

Device Firmware Update デバイス クラスに準拠するデバイスのデバイス クラス オブジェクトを取得します。

Irda

IrDA ブリッジ デバイス定義 1.0 仕様に従って定義された IrDA クラスに準拠する赤外線トランシーバーのデバイス クラス オブジェクトを取得します。

Measurement

USB テストおよび測定クラス (USBTMC) に準拠しているデバイスのデバイス クラス オブジェクトを取得します。

PalmSync

Palm Sync デバイス クラスに準拠するデバイスのデバイス クラス オブジェクトを取得します。

PersonalHealthcare

USB Personal Healthcare Device Class (PHDC) に準拠するデバイスのデバイス クラス オブジェクトを取得します。

Physical

物理インターフェイス デバイス (PID) 仕様に準拠するデバイスのデバイス クラス オブジェクトを取得します。

VendorSpecific

クラス コードを持つカスタム デバイスのデバイス クラス オブジェクト0xFF取得します。 これは、デバイスが USB-IF によって承認されたクラスに属していないことを示します。

適用対象