Pedometer.FromIdAsync(String) 方法

定义

从计步器标识符获取计步器。

public:
 static IAsyncOperation<Pedometer ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<Pedometer> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<Pedometer> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of Pedometer)

参数

deviceId
String

Platform::String

winrt::hstring

传感器标识符。

返回

从其标识符返回 Pedometer 对象。

属性

Windows 要求

应用功能
activity

适用于