共用方式為


PwmController.FromIdAsync(String) 方法

定義

根據指定的 DeviceInformation 識別碼,初始化 PWM 控制器實例。

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

參數

deviceId
String

Platform::String

winrt::hstring

取得的 DeviceInformation 識別碼

傳回

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Devices.DevicesLowLevelContract (已於 v3.0 引進)

適用於