DeviceClass 列舉

定義

指出使用者想要列舉的裝置類型。

public enum class DeviceClass
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class DeviceClass
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum DeviceClass
var value = Windows.Devices.Enumeration.DeviceClass.all
Public Enum DeviceClass
繼承
DeviceClass
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

All 0

表示使用者想要列舉所有裝置。

AudioCapture 1

表示使用者想要列舉所有音訊擷取裝置。

AudioRender 2

表示使用者想要列舉所有音訊轉譯裝置。

ImageScanner 5

表示使用者想要列舉所有掃描裝置。

Location 6

表示使用者想要列舉所有位置感知裝置。

PortableStorageDevice 3

表示使用者想要列舉所有可攜式存放裝置。

VideoCapture 4

表示使用者想要列舉所有視訊擷取裝置。

適用於