共用方式為


HumanPresenceSensor.FromIdAsync(String) 方法

定義

以非同步方式擷取與所提供裝置識別碼相關聯之人類目前狀態感應器的參考。

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

人類目前狀態感應器的唯一裝置識別碼。

傳回

人類目前狀態感應器的參考。

屬性

適用於