SmartCardEmulator 类

定义

表示智能卡模拟器设备。

public ref class SmartCardEmulator 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 SmartCardEmulator 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 SmartCardEmulator
Public NotInheritable Class SmartCardEmulator
继承
Object Platform::Object IInspectable SmartCardEmulator
属性

Windows 要求

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

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1709 16299 IsSupported

属性

EnablementPolicy

获取用户设置的当前卡仿真策略。

MaxAppletIdGroupRegistrations

获取允许小程序 ID 组注册的最大数目。

方法

GetAppletIdGroupRegistrationsAsync()

异步获取此智能卡的已注册小程序标识符组。

GetDefaultAsync()

返回表示默认智能卡模拟器设备的 SmartCardEmulator 对象。

IsHostCardEmulationSupported()

获取一个布尔值,该值指示此设备是否支持主机卡仿真。

IsSupported()

返回是否支持 SmartCardEmulator。

RegisterAppletIdGroupAsync(SmartCardAppletIdGroup)

异步注册一组小程序 ID。

Start()

启动智能卡模拟器。 必须从后台任务调用此方法。

UnregisterAppletIdGroupAsync(SmartCardAppletIdGroupRegistration)

异步注销以前注册的一组小程序 ID。

事件

ApduReceived

当 NFC 控制器收到应用程序协议数据单元 (APDU) 时发生。

ConnectionDeactivated

当与设备的连接在物理上断开或 NFC 读取器请求连接到其他应用时发生。

适用于

另请参阅