Credits a value.

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

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

Parameters

fileNumber
Type: int

0x00..0x1F used as reference within scope of selected application.

value
Type: int

the value stored in DESFire ePurse.

Return Value

Type: bool

True if it succeeds, false if it fails.

requires prior authentication under read/write key. Caller must CommitTransaction() to complete Credit() and any accumulated Debit() transactions.

.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