共用方式為


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 引進)

適用於