DeviceServicingDetails クラス

定義

バックグラウンド サービス タスクをトリガーしたアプリによって指定された DeviceInformation.ID、予想される期間、および引数を指定するために使用されます。

public ref class DeviceServicingDetails sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceServicingDetails final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceServicingDetails
Public NotInheritable Class DeviceServicingDetails
継承
Object Platform::Object IInspectable DeviceServicingDetails
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

プロパティ

Arguments

DeviceServicingTriggerRequestAsync を呼び出したときにアプリによって提供される引数文字列を取得します。 これにより、アプリは、呼び出し時にパラメーターをタスクに簡単に渡すことができます。

DeviceId

タスクが対象とするデバイスの DeviceInformation.ID を取得します。 バックグラウンド タスクは、デバイスを開くために FromIdAsync 適切なデバイス アクセス クラスの メソッドにこれを提供できます。 たとえば、Windows.Devices.Usb 名前空間で UsbDevice.FromIdAsync を呼び出して、USB デバイスを開きます。

ExpectedDuration

DeviceServicingTriggerRequestAsync を呼び出したときにアプリによって提供される推定期間を取得します。

適用対象

こちらもご覧ください