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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read-only | A string representing the identity of the PnpObject. | |
| Read-only | A property store containing well-known values as well as additional specified properties. | |
| Read-only | The 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 |
|
|
Metadata |
|
Build date: 12/4/2012