CashDrawer.FromIdAsync(String) Method

Definition

Creates CashDrawer object from the DeviceInformation.Id.

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

Parameters

deviceId
String

The DeviceInformation.Id that identifies a specific cash drawer, which can be retrieved from the DeviceId property.

Returns

IAsyncOperation<CashDrawer>

The cash drawer 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.
Attributes

Applies to