Adds or replaces the data field of this response APDU.

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

Public Sub SetData( _ 
ByVal vbData As Byte(), _ 
ByVal nOffset As Integer, _ 
ByVal nLength As Integer
)
This language is not supported or no code example is available.
public void SetData( 
byte[] vbData
int nOffset
int nLength 
)
This language is not supported or no code example is available.
public:  
void SetData( 
array< Byte >^ vbData
int nOffset
int nLength 
)
This language is not supported or no code example is available.
public function SetData( 
vbData : byte[], 
nOffset : int
nLength : 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.

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