DeviceUseDetails DeviceUseDetails DeviceUseDetails DeviceUseDetails Class

Definition

Used to provide the DeviceInformation.ID and arguments given by the app that triggered the background sync task.

public : sealed class DeviceUseDetails : IDeviceUseDetailspublic sealed class DeviceUseDetails : IDeviceUseDetailsPublic NotInheritable Class DeviceUseDetails Implements IDeviceUseDetails// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Arguments Arguments Arguments Arguments

Gets the arguments string provided by the app when it called RequestAsync on the DeviceUseTrigger. This allows the app to easily pass parameters to the task when it invokes it.

public : PlatForm::String Arguments { get; }public string Arguments { get; }Public ReadOnly Property Arguments As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The arguments parameter value from the originating RequestAsync call.

DeviceId DeviceId DeviceId DeviceId

Gets the DeviceInformation.ID of the device the task is targeting. The background task can provide this to the FromIdAsync method of the appropriate device access class to open the device. For example, call UsbDevice.FromIdAsync in the Windows.Devices.Usb namespace to open a USB device.

public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The deviceId parameter value from the originating RequestAsync call.

See Also