DeviceServicingDetails
DeviceServicingDetails
DeviceServicingDetails
DeviceServicingDetails
Class
Definition
Used to provide the DeviceInformation.ID, expected duration, and arguments given by the app that triggered the background servicing task.
public : sealed class DeviceServicingDetails : IDeviceServicingDetailspublic sealed class DeviceServicingDetails : IDeviceServicingDetailsPublic NotInheritable Class DeviceServicingDetails Implements IDeviceServicingDetails// You can use this class in JavaScript.
- Attributes
| 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 DeviceServicingTrigger. 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.
ExpectedDuration ExpectedDuration ExpectedDuration ExpectedDuration
Gets the estimated duration provided by the app when it called RequestAsync on the DeviceServicingTrigger.
public : TimeSpan ExpectedDuration { get; }public TimeSpan ExpectedDuration { get; }Public ReadOnly Property ExpectedDuration As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The expectedDuration parameter value from the originating RequestAsync call.