SerialDevice.FromIdAsync(String) SerialDevice.FromIdAsync(String) SerialDevice.FromIdAsync(String) SerialDevice.FromIdAsync(String) SerialDevice.FromIdAsync(String) Method

Definition

Starts an asynchronous operation that creates a SerialDevice object.

public : static IAsyncOperation<SerialDevice> FromIdAsync(Platform::String deviceId)
static IAsyncOperation<SerialDevice> FromIdAsync(winrt::hstring deviceId) const;
public static IAsyncOperation<SerialDevice> FromIdAsync(String deviceId)
Public Shared Function FromIdAsync(deviceId As String) As IAsyncOperation(Of SerialDevice)
Windows.Devices.SerialCommunication.SerialDevice.fromIdAsync(deviceId).done( /* Your success and error handlers */ );

Parameters

deviceId
String String String

The device instance path of the device. To obtain that value, get the DeviceInformation.Id property value.

Returns