PnpObjectType Enum
Definition
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.
Important
We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.
The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.
Indicates the type of device represented by the 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
- Inheritance
-
PnpObjectType
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
AssociationEndpoint | 5 | The PnpObject represents an association endpoint. |
AssociationEndpointContainer | 6 | The PnpObject represents an association endpoint container. |
AssociationEndpointService | 7 | The PnpObject represents an association endpoint service. |
Device | 3 | The PnpObject represents a device. |
DeviceContainer | 2 | The PnpObject represents a device container. |
DeviceInterface | 1 | The PnpObject represents a device interface. |
DeviceInterfaceClass | 4 | The PnpObject represents a device interface class. |
DevicePanel | 8 | The PnpObject represents a device input panel. |
Unknown | 0 | The object is of an unknown type. This value is not used. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1809 | 17763 | DevicePanel |
Applies to
See also
Feedback
Submit and view feedback for