CustomSensor.FromIdAsync(String) 方法

定义

从其标识符异步获取传感器。

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

参数

sensorId
String

Platform::String

winrt::hstring

传感器标识符。

返回

从其标识符返回 CustomSensor 对象。

属性

适用于