Share via


SimpleOrientationSensor.FromIdAsync(String) Method

Definition

Asynchronously retrieves a SimpleOrientationSensor object based on the specified device identifier.

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

Parameters

deviceId
String

Platform::String

winrt::hstring

The SimpleOrientationSensor device identifier.

Returns

After the operation completes, returns the SimpleOrientationSensor instance based on the value of deviceId.

Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to