共用方式為


PedometerDataThreshold(Pedometer, Int32) 建構函式

定義

建立 PedometerDataThreshold 物件。

public:
 PedometerDataThreshold(Pedometer ^ sensor, int stepGoal);
 PedometerDataThreshold(Pedometer const& sensor, int const& stepGoal);
public PedometerDataThreshold(Pedometer sensor, int stepGoal);
function PedometerDataThreshold(sensor, stepGoal)
Public Sub New (sensor As Pedometer, stepGoal As Integer)

參數

sensor
Pedometer

計計感應器。

stepGoal
Int32

int

超過閾值之前的步驟數目,並啟動背景工作。

備註

stepGoal的值必須大於 0。

適用於