HumanPresenceSensor.FromIdAsync(String) 方法

定义

异步检索对与提供的设备 ID 关联的人类存在传感器的引用。

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

参数

sensorId
String

Platform::String

winrt::hstring

人类状态传感器的唯一设备 ID。

返回

对人类存在传感器的引用。

属性

适用于