ClaimedPosPrinter クラス

定義

使用を要求されたサービスポイント プリンターを表します。

public ref class ClaimedPosPrinter 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 ClaimedPosPrinter final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ClaimedPosPrinter 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 ClaimedPosPrinter : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ClaimedPosPrinter : System.IDisposable
Public NotInheritable Class ClaimedPosPrinter
Implements IDisposable
継承
Object Platform::Object IInspectable ClaimedPosPrinter
属性
実装

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 で導入)

注釈

ClaimedPosPrinter クラスのインスタンスを取得するには、 PosPrinter.ClaimPrinterAsync メソッドを使用します。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1809 17763 Closed

プロパティ

CharacterSet

アプリケーションが文字の印刷に使用する文字セットを示す数値を取得または設定します。

DeviceId

要求されたサービス ポイント オブ サービス プリンターの識別子文字列を取得します。

IsCharacterSetMappingEnabled

ドライバーまたはプロバイダーが Unicode 文字をサービス ポイント プリンターで印刷できる文字にマップするか、Unicode 文字の下位バイトをプリンターに直接送信できるかを取得または設定します。

IsCoverOpen

サービスポイント プリンターのカバーが現在開いているかどうかを取得します。

IsEnabled

プリンターの電源がオンになっているかどうかを取得します。

Journal

要求されたポイント オブ サービス プリンターのジャーナル ステーションを表す オブジェクトを取得します。

ジャーナル ステーションは、監査などの目的でストアによって保持されるトランザクションおよびアクティビティ情報をログに記録する単純なテキスト メッセージに使用されます。

ClaimedPosPrinter インスタンスごとに、このオブジェクトのインスタンスは 1 つだけです。 さらに、これは、 JournalPrinterCapabilities.IsPrinterPresent が存在することを示している場合にのみアクセスできます。

MapMode

アプリで使用するサービスポイント プリンターのマッピング モードを取得または設定します。 マッピング モードでは、行の高さや行間など、他のプリンター プロパティに使用される測定単位を定義します。

Receipt

要求されたサービスポイント オブ サービス プリンターのレシート ステーションを表す オブジェクトを取得します。

レシート ステーションは、通常顧客に提供されるトランザクション情報、または店舗レポートを印刷するために使用されます。 レシートステーションには、トランザクション間で用紙を自動的に切り取るナイフと、紙を手動で切り取るティアバーが含まれています。

ClaimedPosPrinter インスタンスごとに、このオブジェクトのインスタンスは 1 つだけです。 さらに、これは 、ReceiptPrinterCapabilities.IsPrinterPresent が存在することを示している場合にのみアクセスするために有効です。

Slip

要求されたサービスポイント オブ サービス プリンターのスリップ ステーションを表す オブジェクトを取得します。

スリップ ステーションは、通常顧客に提供されるフォームの情報を印刷したり、フォームに検証情報を印刷したりするために使用されます。 フォームの種類は、通常、チェックまたはクレジットカード伝票です。

ClaimedPosPrinter インスタンスごとに、このオブジェクトのインスタンスは 1 つだけです。 さらに、これは 、SlipPrinterCapabilities.IsPrinterPresent が存在することを示している場合にのみアクセスするために有効です。

メソッド

Close()

要求されたサービス ポイント オブ サービス プリンター オブジェクトを同期的に破棄し、プリンターの排他要求を解放して無効にします。 C++ と JavaScript の場合は、Close() を使用します。 C# と Visual Basic の場合は、Dispose() を使用します。

DisableAsync()

基になるハードウェアに対してオフにするように通知します。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

EnableAsync()

基になるハードウェアに対して、使用する電源をオンにするように非同期的に通知します。

ResetStatisticsAsync(IIterable<String>)

リセット可能なサービスポイント・プリンターのすべての統計について、指定された統計をゼロにリセットします。

RetainDeviceAsync()

通常は ReleaseDeviceRequested イベントに応答して、サービス ポイント プリンターの要求を非同期的に保持します。

UpdateStatisticsAsync(IIterable<KeyValuePair<String,String>>)

ポイント・オブ・サービス・プリンターの指定された統計を更新します。

イベント

Closed

ClaimedPosPrinter が閉じられたときに発生するイベント。

ReleaseDeviceRequested

サービスポイント プリンターが、その排他的要求を解放する要求を取得したときに発生します。

適用対象

こちらもご覧ください