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

获取与阈值触发器关联的传感器的类型。

适用于