Writes data to the card.

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

Public Function Write( _ 
ByVal filenumber As Integer, _ 
ByVal data As Byte(), _ 
ByVal offset As Integer, _ 
ByVal length As Integer
) As Boolean
This language is not supported or no code example is available.
public bool Write( 
int filenumber
byte[] data
int offset
int length 
)
This language is not supported or no code example is available.
public:  
bool Write( 
int filenumber
array< Byte >^ data
int offset
int length 
)
This language is not supported or no code example is available.
public function Write( 
filenumber : int
data : byte[], 
offset : int
length : int 
) : boolean;
This language is not supported or no code example is available.

Parameters

filenumber
Type: int

The filenumber.

data
Type: byte[]

data to be written, currently limited to 52 bytes max.

offset
Type: int

offset within the file.

length
Type: int

amount of bytes to be written to card.

Return Value

Type: bool

True if it succeeds, false if it fails.

Exception type Condition

ArgumentNullException

Thrown when one or more required arguments are null.

.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