SmartCardReader
SmartCardReader
SmartCardReader
SmartCardReader
Class
Definition
Represents info about a smart card reader.
public : sealed class SmartCardReader : ISmartCardReaderpublic sealed class SmartCardReader : ISmartCardReaderPublic NotInheritable Class SmartCardReader Implements ISmartCardReader// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
DeviceId 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The smart card reader's device ID.
- See Also
Kind Kind Kind Kind
Gets the smart card reader's type.
public : SmartCardReaderKind Kind { get; }public SmartCardReaderKind Kind { get; }Public ReadOnly Property Kind As SmartCardReaderKind// You can use this property in JavaScript.
One of the enumeration values, representing the smart card reader's type.
- See Also
Name 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The smart card reader's device name.
- See Also
Methods
FindAllCardsAsync() 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 )// You can use this method in JavaScript.
After the operation completes, returns the list of info about all smart cards that are connected to the smart card reader.
- See Also
FromIdAsync(String) 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 )// You can use this method in JavaScript.
- deviceId
- PlatForm::String String String String
The smart card reader's device ID.
The matching smart card reader.
- See Also
GetDeviceSelector() 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// You can use this method in JavaScript.
The Advanced Query Syntax (AQS) string representing all smart card readers connected to the device.
Remarks
For info about AQS, see Using Advanced Query Syntax Programmatically.
- See Also
GetDeviceSelector(SmartCardReaderKind) 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// You can use this method in JavaScript.
One of the enumeration values, representing a specific smart card reader type.
The Advanced Query Syntax (AQS) string representing a set of the specified type of smart card readers connected to the device.
Remarks
For info about AQS, see Using Advanced Query Syntax Programmatically.
- See Also
GetStatusAsync() 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 )// You can use this method in JavaScript.
After the status request completes, returns one of the SmartCardReaderStatus enumeration values, representing the smart card reader's status.
- See Also
Events
CardAdded CardAdded CardAdded CardAdded
Occurs when a smart card is inserted into the smart card reader or tapped on an NFC reader.
public : event TypedEventHandler CardAdded<SmartCardReader, CardAddedEventArgs>public event TypedEventHandler CardAdded<SmartCardReader, CardAddedEventArgs>Public Event CardAdded<SmartCardReader, CardAddedEventArgs>// You can use this event in JavaScript.
- See Also
CardRemoved CardRemoved CardRemoved CardRemoved
Occurs when a smart card is taken out of the smart card reader.
public : event TypedEventHandler CardRemoved<SmartCardReader, CardRemovedEventArgs>public event TypedEventHandler CardRemoved<SmartCardReader, CardRemovedEventArgs>Public Event CardRemoved<SmartCardReader, CardRemovedEventArgs>// You can use this event in JavaScript.
- See Also