PnpObject.CreateFromIdAsync(PnpObjectType, String, IIterable<String>) PnpObject.CreateFromIdAsync(PnpObjectType, String, IIterable<String>) PnpObject.CreateFromIdAsync(PnpObjectType, String, IIterable<String>) PnpObject.CreateFromIdAsync(PnpObjectType, String, IIterable<String>) PnpObject.CreateFromIdAsync(PnpObjectType, String, IIterable<String>) Method

Definition

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

public : static IAsyncOperation<PnpObject> CreateFromIdAsync(PnpObjectType type, Platform::String id, IIterable<Platform::String> requestedProperties)
static IAsyncOperation<PnpObject> CreateFromIdAsync(PnpObjectType type, winrt::hstring id, IIterable<winrt::hstring> requestedProperties) const;
public static IAsyncOperation<PnpObject> CreateFromIdAsync(PnpObjectType type, String id, IEnumerable<String> requestedProperties)
Public Shared Function CreateFromIdAsync(type As PnpObjectType, id As String, requestedProperties As IEnumerable(Of String)) As IAsyncOperation(Of PnpObject)
Windows.Devices.Enumeration.Pnp.PnpObject.createFromIdAsync(type, id, requestedProperties).done( /* Your success and error handlers */ );

Parameters

id
String String String

The string value identifying the PnpObject.

requestedProperties
IEnumerable<String> IEnumerable<String> IEnumerable<String>

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