Share via


ImageScanner.FromIdAsync(String) Method

Definition

Creates an instance of a ImageScanner object based on a scanners device information ID. This method is required for broker device enumeration.

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

Parameters

deviceId
String

Platform::String

winrt::hstring

The device information ID. See DeviceInformation.Id property.

Returns

The ImageScanner object.

Attributes

Applies to