Share via


UsbDevice.FromIdAsync(String) Method

Definition

Starts an asynchronous operation that creates a UsbDevice object.

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

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(UsbDevice) object that returns the results of the operation.

Attributes

Applies to