-api-id | -api-type |
---|---|
M:Windows.Devices.Enumeration.DeviceInformation.CreateFromIdAsync(System.String,Windows.Foundation.Collections.IIterable{System.String},Windows.Devices.Enumeration.DeviceInformationKind,Windows.Devices.Enumeration.IDeviceEnumerationSettings) |
winrt method |
Windows.Devices.Enumeration.DeviceInformation.CreateFromIdAsync(System.String,Windows.Foundation.Collections.IIterable{System.String},Windows.Devices.Enumeration.DeviceInformationKind,Windows.Devices.Enumeration.IDeviceEnumerationSettings)
Asynchronously creates a DeviceInformation object from a DeviceInformation ID, a list of additional properties, a DeviceInformationKind, and a settings object.
A string containing the DeviceInformation ID.
An iterable list of additional properties to include in the Properties property of the DeviceInformation object in the enumeration results. For more info about what the properties represent, see Device information properties.
The type of DeviceInformation object that you want to create.
The argument passed in settings is an object that implements IDeviceEnumerationSettings; but otherwise, the object is of an opaque marker class (that is, it has no public properties or methods). The purpose of settings is to retrieve extended parameters from a device-specific API for device-specific scenarios that aren't possible in the standard WDE API. You can think of the parameters like extra knobs that the API surface doesn't allow.
The settings object would come from a device API's GetDeviceEnumerationSettings method, and would contain opaque data. But currently there are no APIs that produce the object.
An asynchronous operation object which, when it completes, contains a newly created DeviceInformation object.