Windows Dev Center

SmartCardReader class

Represents info about a smart card reader.

Syntax


var smartCardReader = Windows.Devices.SmartCards.SmartCardReader;

Members

The SmartCardReader class has these types of members:

Events

The SmartCardReader class has these events.

EventDescription
CardAdded Occurs when a smart card is inserted into the smart card reader or tapped on an NFC reader.
CardRemoved Occurs when a smart card is taken out of the smart card reader.

 

Methods

The SmartCardReader class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
FindAllCardsAsync Returns a list of info about all smart cards that are connected to the smart card reader.
FromIdAsync Returns a smart card reader that matches the specified device ID.
GetDeviceSelector Returns an Advanced Query Syntax (AQS) string representing all smart card readers connected to the device. This string is passed to the FindAllAsync method to enumerate the given set of smart card readers.
GetDeviceSelector(SmartCardReaderKind) Returns an Advanced Query Syntax (AQS) string representing a set of a specific type of smart card readers connected to the device. This string is passed to the FindAllAsync method to enumerate the given set of smart card readers.
GetStatusAsync Returns the smart card reader's status.

 

Properties

The SmartCardReader class has these properties.

PropertyAccess typeDescription

DeviceId

Read-onlyGets the smart card reader's device ID.

Kind

Read-onlyGets the smart card reader's type.

Name

Read-onlyGets the smart card reader's device name.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.SmartCards
Windows::Devices::SmartCards [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.SmartCards
Windows::Devices::SmartCards [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

See also

Object

 

 

Show:
© 2015 Microsoft