PnpObject class

Applies to Windows and Windows Phone

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

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

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]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft