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 で導入)

適用対象