Inclinometer.FromIdAsync(String) Inclinometer.FromIdAsync(String) Inclinometer.FromIdAsync(String) Inclinometer.FromIdAsync(String) Inclinometer.FromIdAsync(String) Method

Definition

Asynchronously obtains the sensor from its identifier.

public : static IAsyncOperation<Inclinometer> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<Inclinometer> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<Inclinometer> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of Inclinometer)
Windows.Devices.Sensors.Inclinometer.fromIdAsync(deviceId).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The sensor identifier

Returns

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)