Share via


SerialDevice.FromIdAsync(String) Method

Definition

Starts an asynchronous operation that creates a SerialDevice object.

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

Parameters

deviceId
String

Platform::String

winrt::hstring

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

Returns

Returns an IAsyncOperation(SerialDevice) object that returns the results of the operation.

Attributes

Applies to