Smart​Card Smart​Card Smart​Card Class

Definition

Represents info about a smart card.

public : sealed class SmartCard : ISmartCard, ISmartCardConnectpublic sealed class SmartCard : ISmartCard, ISmartCardConnectPublic NotInheritable Class SmartCard Implements ISmartCard, ISmartCardConnect
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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
Value
SmartCardReader SmartCardReader SmartCardReader

Info about the smart card reader.

Attributes
See Also

Methods

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 )
Returns

Asynchronous operation that, when complete, returns the SmartCardConnection object representing the connection.

Attributes
See Also

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 )
Returns
Attributes
See Also

GetStatusAsync() GetStatusAsync() GetStatusAsync()

Returns the smart card's status.

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

One of the SmartCardStatus enumeration values, representing the smart card's status.

Attributes
See Also

See Also