Updates Mifare value block.

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

Public Function Decrement( _ 
ByVal blockAddress As Integer, _ 
ByVal newValue As Integer
) As Boolean
This language is not supported or no code example is available.
public bool Decrement( 
int blockAddress
int newValue 
)
This language is not supported or no code example is available.
public:  
bool Decrement( 
int blockAddress
int newValue 
)
This language is not supported or no code example is available.
public function Decrement( 
blockAddress : int
newValue : int 
) : boolean;
This language is not supported or no code example is available.

Parameters

blockAddress
Type: int

address of value block.

newValue
Type: int

must be lower than the current value stored on the card.

Return Value

Type: bool

True if it succeeds, false if it fails.

02OCT2016 MJ work in progress 5427CK: supports on-board increment/decrement 0xC2,0x00,0x03 (see 5427CK spec) byte INS_PCSC_INCREMENT_DECREMENT = 0xC2; byte INS_PCSC_DECREMENT = 0x00; byte INS_PCSC_INCREMENT = 0x00;

.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