次の方法で共有


PnpObjectType 列挙型

定義

重要

Windows.Devices.Enumeration.Pnp 名前空間で型を使用することはお勧めしません。 代わりに、Windows.Devices.Enumeration 名前空間の型は、Windows.Devices.Enumeration.Pnp の機能の最新の、より適切に保守されたスーパーセットを実装します。

PnpObjectType の代わりに、Windows.Devices.Enumeration.DeviceInformationKind 列挙型があり、パラメーターとして Windows.Devices.Enumeration API に渡すことができます。 たとえば、PnpObjectWatcher を作成するときに PnpObjectType を使用する代わりに、DeviceWatcher を作成するときに DeviceInformationKind を使用します。

PnpObject で表されるデバイスの種類を指定する定数を定義します。

public enum class PnpObjectType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PnpObjectType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PnpObjectType
var value = Windows.Devices.Enumeration.Pnp.PnpObjectType.unknown
Public Enum PnpObjectType
継承
PnpObjectType
属性

Windows の要件

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

フィールド

AssociationEndpoint 5

PnpObject は、関連付けエンドポイントを表します。

AssociationEndpointContainer 6

PnpObject は、関連付けエンドポイント コンテナーを表します。

AssociationEndpointProtocol 9

PnpObject がアソシエーション エンドポイント プロトコルを表していることを指定します。

AssociationEndpointService 7

PnpObject は、関連付けエンドポイント サービスを表します。

Device 3

PnpObject はデバイスを表します。

DeviceContainer 2

PnpObject はデバイス コンテナーを表します。

DeviceInterface 1

PnpObject はデバイス インターフェイスを表します。

DeviceInterfaceClass 4

PnpObject は、デバイス インターフェイス クラスを表します。

DevicePanel 8

PnpObject は、デバイス入力パネルを表します。

Unknown 0

オブジェクトは不明な型です。 この値は使用されません。

注釈

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1809 17763 DevicePanel

適用対象

こちらもご覧ください