Share via


HumanPresenceSensor.FromId(String) Method

Definition

Synchronously retrieves a reference to the human presence sensor associated with the provided device ID.

public:
 static HumanPresenceSensor ^ FromId(Platform::String ^ sensorId);
 static HumanPresenceSensor FromId(winrt::hstring const& sensorId);
public static HumanPresenceSensor FromId(string sensorId);
function fromId(sensorId)
Public Shared Function FromId (sensorId As String) As HumanPresenceSensor

Parameters

sensorId
String

Platform::String

winrt::hstring

The unique device ID of a human presence sensor.

Returns

A reference to a human presence sensor.

Applies to