PwmController.FromIdAsync(String) 方法

定义

根据给定 的 DeviceInformation ID 初始化 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 ID

返回

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Devices.DevicesLowLevelContract (在 v3.0 中引入)

适用于