SmartCardReader 類別

定義

代表智慧卡讀卡機的相關資訊。

智慧卡範例應用程式示範如何使用Windows.Devices.SmartCards API,以程式設計方式使用智慧卡和智慧卡閱讀機。 近距離現場通訊 (NFC) 範例應用程式也會示範如何與智慧卡通訊。

public ref class SmartCardReader sealed
/// [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 SmartCardReader final
[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 SmartCardReader
Public NotInheritable Class SmartCardReader
繼承
Object Platform::Object IInspectable SmartCardReader
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

DeviceId

取得智慧卡閱讀機的裝置識別碼。

Kind

取得智慧卡讀卡機的類型。

Name

取得智慧卡閱讀機的裝置名稱。

方法

FindAllCardsAsync()

傳回與智慧卡閱讀機連線之所有智慧卡的相關資訊清單。

FromIdAsync(String)

傳回符合指定裝置識別碼的智慧卡閱讀機。

GetDeviceSelector()

傳回 AQS) 字串 (進階查詢語法,代表連線到裝置的所有智慧卡閱讀機。 此字串會傳遞至 FindAllAsync 方法,以列舉指定的智慧卡讀取器集合。

GetDeviceSelector(SmartCardReaderKind)

傳回進階查詢語法 (AQS) 字串,此字串代表一組連線到裝置的特定智慧卡讀卡機類型。 此字串會傳遞至 FindAllAsync 方法,以列舉指定的智慧卡讀取器集合。

GetStatusAsync()

傳回智慧卡讀卡機的狀態。

事件

CardAdded

當智慧卡插入智慧卡閱讀機或點選 NFC 讀取器時發生。

CardRemoved

當智慧卡從智慧卡閱讀機取出時發生。

適用於

另請參閱