共用方式為


Magnetometer.FromIdAsync(String) 方法

定義

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

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

參數

deviceId
String

Platform::String

winrt::hstring

感應器識別碼

傳回

從其識別碼傳回 磁力計 物件。

屬性

Windows 需求

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

適用於