共用方式為


Compass.FromIdAsync(String) 方法

定義

以非同步方式從其識別碼取得感應器。

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

參數

deviceId
String

Platform::String

winrt::hstring

感應器識別碼

傳回

從其識別碼傳回 Compass 物件。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

適用於