Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 2.48 KB

deviceinformation_createfromidasync_1003420271.md

File metadata and controls

43 lines (24 loc) · 2.48 KB
-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)

-description

Asynchronously creates a DeviceInformation object from a DeviceInformation ID, a list of additional properties, a DeviceInformationKind, and a settings object.

-parameters

-param deviceId

A string containing the DeviceInformation ID.

-param additionalProperties

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.

-param kind

The type of DeviceInformation object that you want to create.

-param settings

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.

-returns

An asynchronous operation object which, when it completes, contains a newly created DeviceInformation object.

-remarks

-see-also