SmartCard SmartCard SmartCard SmartCard Class


Represents info about a smart card.

public : sealed class SmartCard : ISmartCard, ISmartCardConnect
public sealed class SmartCard : ISmartCard, ISmartCardConnect
Public NotInheritable Class SmartCard Implements ISmartCard, ISmartCardConnect
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Reader Reader Reader Reader

Gets info about the smart card reader into which the smart card is inserted.

public : SmartCardReader Reader { get; }
public SmartCardReader Reader { get; }
Public ReadOnly Property Reader As SmartCardReader
var smartCardReader = smartCard.reader;
SmartCardReader SmartCardReader SmartCardReader SmartCardReader

Info about the smart card reader.

See Also


ConnectAsync() ConnectAsync() ConnectAsync() ConnectAsync()

Establishes a connection to the smart card and returns a SmartCardConnection object representing the connection.

public : IAsyncOperation<SmartCardConnection> ConnectAsync()
public IAsyncOperation<SmartCardConnection> ConnectAsync()
Public Function ConnectAsync() As IAsyncOperation( Of SmartCardConnection )
Windows.Devices.SmartCards.SmartCard.connectAsync().done( /* Your success and error handlers */ );
See Also

GetAnswerToResetAsync() GetAnswerToResetAsync() GetAnswerToResetAsync() GetAnswerToResetAsync()

Returns the smart card's Answer to Reset (ATR), a standard series of bytes that contains info about the smart card's characteristics, behaviors, and state.

public : IAsyncOperation<IBuffer> GetAnswerToResetAsync()
public IAsyncOperation<IBuffer> GetAnswerToResetAsync()
Public Function GetAnswerToResetAsync() As IAsyncOperation( Of IBuffer )
Windows.Devices.SmartCards.SmartCard.getAnswerToResetAsync().done( /* Your success and error handlers */ );
See Also

GetStatusAsync() GetStatusAsync() GetStatusAsync() GetStatusAsync()

Returns the smart card's status.

public : IAsyncOperation<SmartCardStatus> GetStatusAsync()
public IAsyncOperation<SmartCardStatus> GetStatusAsync()
Public Function GetStatusAsync() As IAsyncOperation( Of SmartCardStatus )
Windows.Devices.SmartCards.SmartCard.getStatusAsync().done( /* Your success and error handlers */ );
See Also

See Also