Construct a CardResponseAPDU instance from a the response data and the status word SW.

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

Public Sub New( _ 
ByVal vbData As Byte(), _ 
ByVal nOffset As Integer, _ 
ByVal nLength As Integer, _ 
ByVal nSW As Integer
)
This language is not supported or no code example is available.
public CardResponseAPDU( 
byte[] vbData
int nOffset
int nLength
int nSW 
)
This language is not supported or no code example is available.
public:  
CardResponseAPDU( 
array< Byte >^ vbData
int nOffset
int nLength
int nSW 
)
This language is not supported or no code example is available.
public function CardResponseAPDU( 
vbData : byte[], 
nOffset : int
nLength : int
nSW : int 
);
This language is not supported or no code example is available.

Parameters

vbData
Type: byte[]

A byte array that provides the data for the data field for this response APDU. This parameter must not be null. This method allocates a new array and copies the data from the given array. It does not keep any reference to the given array.

nOffset
Type: int

Offset into byte array where the first byte shall be taken from. This must not be negative and must be within the given byte array.

nLength
Type: int

Number of bytes to take from the given byte array starting at nOffset. This must not be zero or negative. The entire length must fall inside the given byte array. The length must not be longer than MAXEXTENDEDLR = 65536 bytes.

nSW
Type: int

The status word SW as an integer in the range from 0x0000 through 0xFFFF.

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