SimpleOrientationSensor.FromIdAsync(String) 方法

定义

基于指定的设备标识符异步检索 SimpleOrientationSensor 对象。

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)

参数

deviceId
String

Platform::String

winrt::hstring

SimpleOrientationSensor 设备标识符。

返回

操作完成后,根据 deviceId 的值返回 SimpleOrientationSensor 实例。

属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于