共用方式為


Barometer.FromIdAsync(String) 方法

定義

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

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

參數

deviceId
String

Platform::String

winrt::hstring

感應器識別碼

傳回

從其識別碼傳回 Barometer 物件。

屬性

Windows 需求

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

適用於