Construct CardCommandAPDU instance for an ISO 7816-4 (short or extended) case 3 "DATA_NODATA" command.

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

Public Sub New( _ 
ByVal nCLA As Byte, _ 
ByVal nINS As Byte, _ 
ByVal nP1 As Byte, _ 
ByVal nP2 As Byte, _ 
ByVal vbData As Byte() _ 
)
This language is not supported or no code example is available.
public CardCommandAPDU( 
byte nCLA
byte nINS
byte nP1
byte nP2
byte[] vbData 
)
This language is not supported or no code example is available.
public:  
CardCommandAPDU( 
Byte nCLA
Byte nINS
Byte nP1
Byte nP2
array< Byte >^ vbData 
)
This language is not supported or no code example is available.
public function CardCommandAPDU( 
nCLA : byte
nINS : byte
nP1 : byte
nP2 : byte
vbData : byte[] 
);
This language is not supported or no code example is available.

Parameters

nCLA
Type: byte

Class byte.

nINS
Type: byte

Instruction byte.

nP1
Type: byte

First parameter byte.

nP2
Type: byte

Second parameter byte.

vbData
Type: byte[]

Complete data field of command APDU. Up to and including a maximum length of 255 bytes, a command APDU with a short length field will be built. For data lengths from 256 bytes up to and including 65535 bytes, a command APDU with an extended length field will be built. Longer byte arrays and empty byte arrays are not permitted.

Exception type Condition

ArgumentOutOfRangeException

Thrown when one or more arguments are outside the required range.

ArgumentNullException

Thrown when one or more required arguments are null.

Marc, 9/29/2022.

.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, 8.0

.NET Standard

Supported in: 2.0