Share via


BarcodeScanner.GetDefaultAsync method (Handheld 8)

2/18/2014

Returns the first available barcode scanner.

Syntax

public static IAsyncOperation<BarcodeScanner> GetDefaultAsync()
Public Shared Function GetDefaultAsync() As IAsyncOperation(Of BarcodeScanner)
public:
static IAsyncOperation<BarcodeScanner>^ GetDefaultAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<BarcodeScanner>

The first available barcode scanner. Returns a null object in the following cases:

  • A 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.

See Also

Reference

BarcodeScanner class