Smart​Card​Reader Smart​Card​Reader Smart​Card​Reader Class

Definition

Represents info about a smart card reader.

public : sealed class SmartCardReader : ISmartCardReaderpublic sealed class SmartCardReader : ISmartCardReaderPublic NotInheritable Class SmartCardReader Implements ISmartCardReader
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

DeviceId DeviceId DeviceId

Gets the smart card reader's device ID.

public : PlatForm::String DeviceId { get; }public string DeviceId { get; }Public ReadOnly Property DeviceId As string
Value
PlatForm::String string string

The smart card reader's device ID.

Attributes
See Also

Kind Kind Kind

Gets the smart card reader's type.

public : SmartCardReaderKind Kind { get; }public SmartCardReaderKind Kind { get; }Public ReadOnly Property Kind As SmartCardReaderKind
Value
SmartCardReaderKind SmartCardReaderKind SmartCardReaderKind

One of the enumeration values, representing the smart card reader's type.

Attributes
See Also

Name Name Name

Gets the smart card reader's device name.

public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string
Value
PlatForm::String string string

The smart card reader's device name.

Attributes
See Also

Methods

FindAllCardsAsync() FindAllCardsAsync() FindAllCardsAsync()

Returns a list of info about all smart cards that are connected to the smart card reader.

public : IAsyncOperation<IVectorView<SmartCard>> FindAllCardsAsync()public IAsyncOperation<IReadOnlyList<SmartCard>> FindAllCardsAsync()Public Function FindAllCardsAsync() As IAsyncOperation( Of IReadOnlyListSmartCard )
Returns
IAsyncOperation<IVectorView<SmartCard>> IAsyncOperation<IReadOnlyList<SmartCard>> IAsyncOperation<IReadOnlyList<SmartCard>>

After the operation completes, returns the list of info about all smart cards that are connected to the smart card reader.

Attributes
See Also

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Returns a smart card reader that matches the specified device ID.

public : static IAsyncOperation<SmartCardReader> FromIdAsync(PlatForm::String deviceId)public static IAsyncOperation<SmartCardReader> FromIdAsync(String deviceId)Public Static Function FromIdAsync(deviceId As String) As IAsyncOperation( Of SmartCardReader )
Parameters
deviceId
PlatForm::String String String

The smart card reader's device ID.

Returns
Attributes
See Also

GetDeviceSelector() GetDeviceSelector() 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.

public : static PlatForm::String GetDeviceSelector()public static string GetDeviceSelector()Public Static Function GetDeviceSelector() As string
Returns
PlatForm::String string string

The Advanced Query Syntax (AQS) string representing all smart card readers connected to the device.

Attributes

Remarks

For info about AQS, see Using Advanced Query Syntax Programmatically.

See Also

GetDeviceSelector(SmartCardReaderKind) GetDeviceSelector(SmartCardReaderKind) 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.

public : static PlatForm::String GetDeviceSelector(SmartCardReaderKind kind)public static string GetDeviceSelector(SmartCardReaderKind kind)Public Static Function GetDeviceSelector(kind As SmartCardReaderKind) As string
Parameters
kind
SmartCardReaderKind SmartCardReaderKind SmartCardReaderKind

One of the enumeration values, representing a specific smart card reader type.

Returns
PlatForm::String string string

The Advanced Query Syntax (AQS) string representing a set of the specified type of smart card readers connected to the device.

Attributes

Remarks

For info about AQS, see Using Advanced Query Syntax Programmatically.

See Also

GetStatusAsync() GetStatusAsync() GetStatusAsync()

Returns the smart card reader's status.

public : IAsyncOperation<SmartCardReaderStatus> GetStatusAsync()public IAsyncOperation<SmartCardReaderStatus> GetStatusAsync()Public Function GetStatusAsync() As IAsyncOperation( Of SmartCardReaderStatus )
Returns

After the status request completes, returns one of the SmartCardReaderStatus enumeration values, representing the smart card reader's status.

Attributes
See Also

Events

CardAdded CardAdded CardAdded

Occurs when a smart card is inserted into the smart card reader or tapped on an NFC reader.

public : event TypedEventHandler CardAddedpublic event TypedEventHandler CardAddedPublic Event CardAdded
Attributes
See Also

CardRemoved CardRemoved CardRemoved

Occurs when a smart card is taken out of the smart card reader.

public : event TypedEventHandler CardRemovedpublic event TypedEventHandler CardRemovedPublic Event CardRemoved
Attributes
See Also

See Also