HumanPresenceSensor.FromId(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.