PnpObject PnpObject PnpObject PnpObject PnpObject Class

Definition

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.

public : sealed class PnpObject : IPnpObject
struct winrt::Windows::Devices::Enumeration::Pnp::PnpObject : IPnpObject
public sealed class PnpObject : IPnpObject
Public NotInheritable Class PnpObject Implements IPnpObject
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Id Id Id Id Id

A string representing the identity of the PnpObject.

Properties Properties Properties Properties Properties

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

Type Type Type Type Type

The type of the PnpObject.

Methods

CreateFromIdAsync(PnpObjectType, String, IIterable<String>) CreateFromIdAsync(PnpObjectType, String, IIterable<String>) CreateFromIdAsync(PnpObjectType, String, IIterable<String>) CreateFromIdAsync(PnpObjectType, String, IIterable<String>) CreateFromIdAsync(PnpObjectType, String, IIterable<String>)

Creates a PnpObject object asynchronously from a previously saved DeviceInformation ID.

CreateWatcher(PnpObjectType, IIterable<String>) CreateWatcher(PnpObjectType, IIterable<String>) CreateWatcher(PnpObjectType, IIterable<String>) CreateWatcher(PnpObjectType, IIterable<String>) 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) CreateWatcher(PnpObjectType, IIterable<String>, String) CreateWatcher(PnpObjectType, IIterable<String>, String) CreateWatcher(PnpObjectType, IIterable<String>, String) 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>) FindAllAsync(PnpObjectType, IIterable<String>) FindAllAsync(PnpObjectType, IIterable<String>) FindAllAsync(PnpObjectType, IIterable<String>) FindAllAsync(PnpObjectType, IIterable<String>)

Returns all of the PnP objects of a specified type that match the specified criteria.

FindAllAsync(PnpObjectType, IIterable<String>, String) FindAllAsync(PnpObjectType, IIterable<String>, String) FindAllAsync(PnpObjectType, IIterable<String>, String) FindAllAsync(PnpObjectType, IIterable<String>, String) FindAllAsync(PnpObjectType, IIterable<String>, String)

Returns all of the PnP objects of a specified type that match the specified filter.

Update(PnpObjectUpdate) Update(PnpObjectUpdate) Update(PnpObjectUpdate) Update(PnpObjectUpdate) Update(PnpObjectUpdate)

Updates the properties of an existing PnpObject by applying the changes described in a PnpObjectUpdate object.