SmartCardEmulatorApduReceivedEventArgs 类

定义

ApduReceived 事件提供数据。

public ref class SmartCardEmulatorApduReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.SmartCards.SmartCardEmulatorContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SmartCardEmulatorApduReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.SmartCards.SmartCardEmulatorContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SmartCardEmulatorApduReceivedEventArgs
Public NotInheritable Class SmartCardEmulatorApduReceivedEventArgs
继承
Object Platform::Object IInspectable SmartCardEmulatorApduReceivedEventArgs
属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (在 v1.0 中引入)

注解

系统生成此类的实例,并将其作为参数传递给应用程序的 ApduReceived 事件处理程序。

版本历史记录

Windows 版本 SDK 版本 已添加值
1511 10586 状态
1511 10586 TryRespondAsync (IBuffer,可为 Null 的<UInt32>)
1511 10586 TryRespondWithCryptogramsAsync (IBuffer,IEnumerable<SmartCardCryptogramPlacementStep>)
1511 10586 TryRespondWithCryptogramsAsync (IBuffer,IEnumerable<SmartCardCryptogramPlacementStep>,Nullable<UInt32>)

属性

AutomaticResponseStatus

获取 一个 SmartCardAutomaticResponseStatus 对象,该对象指示自动响应已成功发送 (成功) 、尝试但失败 (UnknownError) ,或者未与任何自动响应程序规则匹配 (None) 。

CommandApdu

表示由 NFC 读取器发送 (APDU) 命令的应用程序协议数据单元。

ConnectionProperties

获取智能卡模拟器的连接属性。

State

获取状态。

方法

TryRespondAsync(IBuffer)

尝试响应 APDU。

TryRespondAsync(IBuffer, IReference<UInt32>)

尝试响应 APDU。

TryRespondWithCryptogramsAsync(IBuffer, IIterable<SmartCardCryptogramPlacementStep>)

尝试响应 APDU,按照放置步骤的指示在传出消息中放置加密语法。

TryRespondWithCryptogramsAsync(IBuffer, IIterable<SmartCardCryptogramPlacementStep>, IReference<UInt32>)

返回一个异步操作,该操作以操作状态完成。

适用于

另请参阅