CustomSensorReading クラス

定義

センサーのドライバーからアプリに送信されるカスタム データを含むキーと値のペアのプロパティ セットを表します。

各キーは PROPERTYKEY を表す文字列です。 各値には、整数、ブール値、float、または double を指定できます。

public ref class CustomSensorReading 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 CustomSensorReading 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 CustomSensorReading
Public NotInheritable Class CustomSensorReading
継承
Object Platform::Object IInspectable CustomSensorReading
属性

Windows の要件

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

注釈

このオブジェクトにアクセスするには、GetCurrentReading メソッドを呼び出すか、イベント コールバック メソッドで CustomSensorReadingChangedEventArgs オブジェクトの Reading プロパティを取得します。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1709 16299 PerformanceCount

プロパティ

PerformanceCount

読み取りに関連付けられているパフォーマンス数を取得します。 これにより、読み取りをシステム上の他のデバイスやプロセスと同期できます。

Properties

センサーのプロパティ セットを取得します。

Timestamp

センサーが読み取りを報告した時刻を取得します。

適用対象

こちらもご覧ください