SerialDevice.FromIdAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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