PnpObject class

This topic has not yet been rated - Rate this topic

Represents a PnP object. This class allows access to well-known properties of a PnP object as well as a property store of additional properties that are specified to be retrieved from the the PnP object.

Syntax


var pnpObject = Windows.Devices.Enumeration.Pnp.PnpObject;

Attributes

DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.Devices.Enumeration.Pnp.IPnpObjectStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

Members

The PnpObject class has these types of members:

Methods

The PnpObject class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CreateFromIdAsync Creates a PnpObject object asynchronously from a previously saved DeviceInformation ID.
CreateWatcher(PnpObjectType, IIterable(String)) Returns a PnpObjectWatcher object that is used to enumerate the PnP objects in the collection using events.
CreateWatcher(PnpObjectType, IIterable(String), String) Returns a PnpObjectWatcher object that is used to enumerate a filtered collection of PnP objects using events.
FindAllAsync(PnpObjectType, IIterable(String)) Returns all of the PnP objects of a specified type that match the specified criteria.
FindAllAsync(PnpObjectType, IIterable(String), String) Returns all of the PnP objects of a specified type that match the specified filter.
Update Updates the properties of an existing PnpObject by applying the changes described in a PnpObjectUpdate object.

 

Properties

The PnpObject class has these properties.

PropertyAccess typeDescription

Id

Read-onlyA string representing the identity of the PnpObject.

Properties

Read-onlyA property store containing well-known values as well as additional specified properties.

Type

Read-onlyThe type of the PnpObject.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Namespace

Windows.Devices.Enumeration.Pnp
Windows::Devices::Enumeration::Pnp [C++]

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.