CashDrawer 클래스

정의

소매 시나리오의 현금 서랍 장치.

public ref class CashDrawer sealed
public ref class CashDrawer sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CashDrawer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CashDrawer final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CashDrawer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CashDrawer : System.IDisposable
Public NotInheritable Class CashDrawer
Public NotInheritable Class CashDrawer
Implements IDisposable
상속
Object Platform::Object IInspectable CashDrawer
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

CashDrawer 개체를 얻으려면 FromIdAsync 또는 GetDefaultAsync 정적 메서드를 사용합니다.

예제 구현은 현금 서랍 샘플을 참조하세요.

버전 기록

Windows 버전 SDK 버전 추가된 값
1703 15063 GetDeviceSelector(PosConnectionTypes)

속성

Capabilities

API에서 노출하는 현금 서랍 디바이스의 기능입니다.

DeviceId

현금 서랍 디바이스의 식별자 문자열입니다.

DrawerEventSource

앱이 서랍의 열기/닫기 상태를 검색할 수 있도록 하는 CashDrawerEventSource 를 가져옵니다. 실제 현재 상태는 IsDrawerOpen에 의해 보고됩니다.

IsDrawerOpen

현금 서랍이 열려 있는지 여부를 나타냅니다.

Status

현금 서랍의 현재 전원 및 가용성 상태 가져옵니다.

메서드

CheckHealthAsync(UnifiedPosHealthCheckLevel)

디바이스의 상태를 비동기적으로 가져옵니다.

ClaimDrawerAsync()

현금 서랍에 대한 독점적 인 액세스를 얻으려고 시도합니다.

Close()

현금 서랍 세션을 닫습니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

FromIdAsync(String)

DeviceInformation.IdCashDrawer 개체를 만듭니다.

GetDefaultAsync()

페어링된 기본 또는 로컬로 연결된 현금 서랍을 가져옵니다.

GetDeviceSelector()

사용 가능한 현금 서랍을 나열하는 데 사용할 수 있는 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetDeviceSelector(PosConnectionTypes)

지정된 연결 유형에서 사용할 수 있는 현금 서랍을 나열하는 데 사용할 수 있는 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetStatisticsAsync(IIterable<String>)

현금 서랍에서 요청된 통계를 검색합니다.

이벤트

StatusUpdated

서랍의 전원 가용성 상태 변경되었음을 나타냅니다.

적용 대상

추가 정보