DeviceConnectionChangeTrigger.FromIdAsync(String) 方法

定义

开始异步操作以获取与指定 ID 关联的 DeviceConnectionChangeTrigger

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

参数

deviceId
String

Platform::String

winrt::hstring

用于查找关联触发器的设备 ID。

返回

与指定设备 ID 关联的 DeviceConnectionChangeTrigger 对象。

属性

适用于