Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.18 KB

pnpobject_createfromidasync_1267380005.md

File metadata and controls

38 lines (26 loc) · 2.18 KB
-api-id -api-type
M:Windows.Devices.Enumeration.Pnp.PnpObject.CreateFromIdAsync(Windows.Devices.Enumeration.Pnp.PnpObjectType,System.String,Windows.Foundation.Collections.IIterable{System.String})
winrt method

Windows.Devices.Enumeration.Pnp.PnpObject.CreateFromIdAsync

-description

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.

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

-parameters

-param type

The type of the PnpObject.

-param id

The string value identifying the PnpObject.

-param requestedProperties

An iterable list of additional properties to include in the Properties property of the PnpObject object to create. For more info on what the properties represent, see Device information properties.

-returns

The PnpObject created from the previously saved DeviceInformation ID.

-remarks

-examples

-see-also