Selects application on a multi-application card. The AID can be an RID or RID + PIX. This method can be used to explore the card and find out what applets are loaded in case the host application wants to support multiple card configurations. This method can also be used as main entry point for data access as defined in PIV End-Point Client-Application Programming Interface SP 800-73-3 Note that cards might select a default applet at power- up. Selecting a different applet might change scope, exposing a different card edge.

Namespace: CardWerk.SmartCard.CardModule.PIV
Assembly: CardWerk.SmartCard.CardModule.PIV (in CardWerk.SmartCard.CardModule.PIV.dll)

Public Function SelectApplet( _ 
ByVal aid As Byte() _ 
) As Boolean
This language is not supported or no code example is available.
public bool SelectApplet( 
byte[] aid 
)
This language is not supported or no code example is available.
public:  
bool SelectApplet( 
array< Byte >^ aid 
)
This language is not supported or no code example is available.
public function SelectApplet( 
aid : byte[] 
) : boolean;
This language is not supported or no code example is available.

Parameters

aid
Type: byte[]

The aid.

Return Value

Type: bool

True if it succeeds, false if it fails.

Exception type Condition

SmartCardApiException

Thrown when a Smart Card API error condition occurs.

ArgumentNullException

Thrown when one or more required arguments are null.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0

.NET Standard

Supported in: 2.0