SensorDataThresholdTriggerDetails 類別

定義

提供感應器觸發資料閾值監視工作的資料。

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

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

備註

若要根據資料閾值觸發程式支援感應器的背景觸發程式,您必須實作 GetReadingsFromTriggerDetails之類的方法。 您必須針對您想要回應資料閾值觸發程式的每個感應器執行此動作。

屬性

DeviceId

取得啟動閾值觸發程式之裝置的裝置識別碼。

SensorType

取得與臨界值觸發程式相關聯的感應器類型。

適用於