Truncates the data block of this response APDU at the given size.

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

Public Sub TruncateData( _ 
ByVal nLr As Integer
)
This language is not supported or no code example is available.
public void TruncateData( 
int nLr 
)
This language is not supported or no code example is available.
public:  
void TruncateData( 
int nLr 
)
This language is not supported or no code example is available.
public function TruncateData( 
nLr : int 
);
This language is not supported or no code example is available.

Parameters

nLr
Type: int

Maximum length of response data to truncate at. This must not be negative and must not be larger than MAXEXTENDEDLR = 65536. If this is zero, then any existing data field will be deleted. If this is larger than the current size of the data field, then this method does nothing. Otherwise the first nLr bytes of the data field are copied into a new array that becomes the new data field of this response APDU.

Exception type Condition

ArgumentOutOfRangeException

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

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