BarcodeScanner.FromIdAsync method (Handheld 8)
2/18/2014
Creates a new instance of the barcode scanner from the specified device identifier.
Syntax
public static IAsyncOperation<BarcodeScanner> FromIdAsync(
string deviceId
)
Public Shared Function FromIdAsync(
deviceId As String
) As IAsyncOperation(Of BarcodeScanner)
public:
static IAsyncOperation<BarcodeScanner>^ FromIdAsync(
String^ deviceId
)
Parameters
deviceId
Type: System.String [.NET] | Platform::String [C++]Unique device identifier.
Return value
Type: IAsyncOperation<BarcodeScanner>
The barcode scanner specified by the unique device identifier. Returns a null object in the following cases:
- The specific device is not found.
- Access denied to the existing device. The user can deny access to a device, which is not treated as an exception.